Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp106521rdg; Wed, 11 Oct 2023 23:24:54 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGc2S0btzKWy358cSmN8KycOoLQ5fpBTrIdrSsymOPs4QPsaNrUKN5YtNIzPv1X5yJYODZ7 X-Received: by 2002:a05:6808:989:b0:3a7:3881:d6f4 with SMTP id a9-20020a056808098900b003a73881d6f4mr24052567oic.35.1697091894470; Wed, 11 Oct 2023 23:24:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697091894; cv=none; d=google.com; s=arc-20160816; b=S0kT7uAk/EMEXJb3so7aTQSHNiRJ98lQEg3GIjZRnURUuo0J7obOPcNDS8fSjif7Q/ AbwRieySL58pHxCRfmULo4fv86ltH48sSUWkMUsEg1SM4nXuMPOI9LMybifaYy8jN4f1 AwFwKpx8QSY1/9UwLcBKh4+7ovyH9LVGrBEOrfthanWwfzV5A4Vs5kbJ/AyFOcRgh97/ eeK1J2hNS8P8lFppQnZGEbHieWRxyHykcAZgSB9HoAFkzNdzFbSdv+bKTcM4A4EIwBMD qHnu1UF80/rGm518WKUbS1i7DT1xMwe6OZg2jzpr/ZTsOSPjQLHWeTA7DOQTVS1E/TLY 6rtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=EeU4glzf7AMn8qq7ueoEKKj+mEB5KFmYHLHv3WfeocA=; fh=d2c3GDvCFnEMjeV5/UdzkMgvIdbP06sIBDmJP5CjgvI=; b=LNb8nDuMKzfL8kuzKsbGlg6iVg2e7FeTr/WEIlXRozED8Uzhw9lfVS9I8q21vmRRU+ 4MUc8LLEnb5E5X1a1ktPEcnW/FTTfyCoZouY7/TAKrQey4noKOsYjZ5YHjVZyDRnx1eZ ASw/YfrPVZ687iUkNhRaOr8OrOQtP+ylJTRfg9JSC/sOOVtnvfz5AecA/k6zMQjAke5N bp3VzqTgVlZlLIrEPKw+hRbV/0yhe/VPm4u8HghePiaEj0kIWalGmbYd/5Kr5bXM42XV iBG266nNvuOlJ9r1/7hRb4KlL19Q8Tsljmol4VUySiYOz8wQjvpZ6/12x2ZcjPbzLp+D m2Tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Z1U58E5G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id c16-20020a631c10000000b00577f80ddb2esi1461130pgc.705.2023.10.11.23.24.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 23:24:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Z1U58E5G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id AFBA5811547C; Wed, 11 Oct 2023 23:24:51 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377573AbjJLGYY (ORCPT + 99 others); Thu, 12 Oct 2023 02:24:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377515AbjJLGYT (ORCPT ); Thu, 12 Oct 2023 02:24:19 -0400 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B740E0 for ; Wed, 11 Oct 2023 23:24:15 -0700 (PDT) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-5a7c4e10594so10155497b3.1 for ; Wed, 11 Oct 2023 23:24:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1697091854; x=1697696654; darn=vger.kernel.org; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=EeU4glzf7AMn8qq7ueoEKKj+mEB5KFmYHLHv3WfeocA=; b=Z1U58E5GbHMjbK2/Qvu2IUfacU3bHmWnp/dsMURmSj5lXZzDXJRBfgRJNJwFu6ZWNv ZWaf0aImIotiOsM2ZQM8NlxyHZKsjUQpTrDW5ZISggs4ur0oMZAGQwCjhx85jNkG/Us/ gAPLvqsl2Db44SNrZwhbLqk2V3VS86xavDAB7+hTkeRFv/dLY1zqKPHn0UTAeH8IDIUH W3XUan4+Sb4LzaRnByD9tx000aOkrs4JZ0JHlei5KtBz2SZLB/elFKpAOGulIMv0hZnT 5zKKTDft6mPn+7/1VpE5qwgYWjAoNkfCO8sCtHfLFkQWJE56T1T1D59ySmuyAH5vjOot t45Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697091854; x=1697696654; h=to:from:subject:references:mime-version:message-id:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EeU4glzf7AMn8qq7ueoEKKj+mEB5KFmYHLHv3WfeocA=; b=i+w6aIq8Zw3GCk390Ajm43c2x3nvFnMshV1U+ztn7j3bvtE2KcC2YVPanx6pzeVZv5 TO0LSwRjeBzVDk0HxqpQcujkcCMZGlsvFKAQhx+GI3IYRSKIpou/pkJgo04JH6y9ot7b dViKv9FrZf8l+I1oK4oKdGVNkQH3LraRUVhLuz/ozEY4ZnErn4iZ+Qo/PFRv8GZzcvVm P/9kk+w/yeeW9DQh/5e2V6hCzgdLFyLqmUPRvTNM9HuafYbksOl2NPa7bvtZB/SHElUl SqXABHZkMh+TjNS9O7eNveS7RPhuGjZRYcDYUjhW1WsZNHWXUO5Gf5CuEnXDyAaVmG2C 5MnA== X-Gm-Message-State: AOJu0YwSYwEu9x3rsAi1RZa/YRkfinMZsKxR7lnhYWn105T8okWERAC+ siQcCWs1mTWXuc60ghs39Xecuvl1TUAz X-Received: from irogers.svl.corp.google.com ([2620:15c:2a3:200:7be5:14d2:880b:c5c9]) (user=irogers job=sendgmr) by 2002:a25:d510:0:b0:d89:4247:4191 with SMTP id r16-20020a25d510000000b00d8942474191mr430367ybe.3.1697091854712; Wed, 11 Oct 2023 23:24:14 -0700 (PDT) Date: Wed, 11 Oct 2023 23:23:50 -0700 In-Reply-To: <20231012062359.1616786-1-irogers@google.com> Message-Id: <20231012062359.1616786-5-irogers@google.com> Mime-Version: 1.0 References: <20231012062359.1616786-1-irogers@google.com> X-Mailer: git-send-email 2.42.0.609.gbb76f46606-goog Subject: [PATCH v2 04/13] perf threads: Remove unused dead thread list From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Nick Terrell , Kan Liang , Song Liu , Sandipan Das , Anshuman Khandual , James Clark , Liam Howlett , Miguel Ojeda , Leo Yan , German Gomez , Ravi Bangoria , Artem Savkov , Athira Rajeev , Andi Kleen , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, bpf@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 11 Oct 2023 23:24:51 -0700 (PDT) Commit 40826c45eb0b ("perf thread: Remove notion of dead threads") removed dead threads but the list head wasn't removed. Remove it here. Signed-off-by: Ian Rogers --- tools/perf/util/machine.c | 1 - tools/perf/util/machine.h | 1 - 2 files changed, 2 deletions(-) diff --git a/tools/perf/util/machine.c b/tools/perf/util/machine.c index e0e2c4a943e4..8e5085b77c7b 100644 --- a/tools/perf/util/machine.c +++ b/tools/perf/util/machine.c @@ -67,7 +67,6 @@ static void machine__threads_init(struct machine *machine) threads->entries = RB_ROOT_CACHED; init_rwsem(&threads->lock); threads->nr = 0; - INIT_LIST_HEAD(&threads->dead); threads->last_match = NULL; } } diff --git a/tools/perf/util/machine.h b/tools/perf/util/machine.h index d034ecaf89c1..1279acda6a8a 100644 --- a/tools/perf/util/machine.h +++ b/tools/perf/util/machine.h @@ -35,7 +35,6 @@ struct threads { struct rb_root_cached entries; struct rw_semaphore lock; unsigned int nr; - struct list_head dead; struct thread *last_match; }; -- 2.42.0.609.gbb76f46606-goog