Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3820951rdb; Thu, 14 Sep 2023 03:54:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEkZoz+pCtEtpamrKuRjkPRyt0gIYWJc8zfy6H4n70I+3ZdjZ0OhptdsVfTH2u5kSDNIAwD X-Received: by 2002:a17:902:f54b:b0:1bf:6cbc:6ead with SMTP id h11-20020a170902f54b00b001bf6cbc6eadmr6422900plf.22.1694688882804; Thu, 14 Sep 2023 03:54:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694688882; cv=none; d=google.com; s=arc-20160816; b=ePgre1qVW9y4f5bc0MJS0+eMr2/IJV7sA5/FEXEMez07Hg+8+V1aVD0ZYe0WMZUbWe J25BAliKf3TaFdUskT2TYeN2mBem6YDXK3EbjcKY5rvGUOMt5W6LKIBKszCZhr2xGsTV n56jpSY+Cbni068fd5DwNgNKDNKY5UPAb+ec4p7ZNZDjsTfZ5lQrjZugYc8k5QcoTaDM Y9VqSCYBHorPG8ftFQy03a3dO+bDv3gkMxUCwiInZgewapIfwpYRlr9/sSTApB9pwczp ES449ENGCxAnGtKfGaaeuEwsBjr2niNFGjE6Xnj+Zp/XRE2JD8S4S4UemPSw4ZzpLCW5 NXBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=i8H2PujI+s4+Gxmc/asBax9hsfS9x0GYkSrquxDNBSI=; fh=57zbgUKe3R506Qlr2nBwVpFc9k8FHi7e38gAQFZllUY=; b=eEw8aiFQHPqAqGKxtpNOOcAnSHejoPpct83NgDM7YOa+hVkeNzTUnEJLhdb7UTtbv2 ryujG8IolB+hdxq1VJOus+oOkBZBWdoZmq00ZRTfvE2B/zNUlU2LKFSqlP/KIqz2LqPY ex5CYmhqife3zjo5ldO1XAFmP4pIqxtrJzQornGSr8n/znXoGuStA5++YFz77tzqzu0e 0XDj93TQlkUBYEW8tVfA49v1SBJxSjf1txoN3EZhXBqVNtFU0FzNMRzAZ9k8HR7qNjrB vy5Ct1DdDcoqLjOpgV6o65coLHy5/74dO+GKP3oAxFy8aOyB+FrVu2PQEE3hpVDORtu0 fD1w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id s1-20020a170902ea0100b001b9eb349549si1506834plg.630.2023.09.14.03.54.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 03:54:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id C0350829F675; Thu, 14 Sep 2023 03:39:39 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233114AbjINKjj (ORCPT + 99 others); Thu, 14 Sep 2023 06:39:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230444AbjINKjh (ORCPT ); Thu, 14 Sep 2023 06:39:37 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A1A201BF0; Thu, 14 Sep 2023 03:39:32 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 80A351FB; Thu, 14 Sep 2023 03:40:09 -0700 (PDT) Received: from [10.1.29.46] (unknown [10.1.29.46]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 73FD23F738; Thu, 14 Sep 2023 03:39:27 -0700 (PDT) Message-ID: Date: Thu, 14 Sep 2023 11:39:25 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v3 3/3] perf pmu: Remove unused function To: John Garry , linux-perf-users@vger.kernel.org, irogers@google.com, acme@kernel.org Cc: Will Deacon , Mike Leach , Leo Yan , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Kan Liang , Haixin Yu , Jing Zhang , Eduard Zingerman , Ravi Bangoria , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20230913153355.138331-1-james.clark@arm.com> <20230913153355.138331-4-james.clark@arm.com> <5976613f-8c7b-81a8-3200-9f0603f90743@oracle.com> Content-Language: en-US From: James Clark In-Reply-To: <5976613f-8c7b-81a8-3200-9f0603f90743@oracle.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 (howler.vger.email [0.0.0.0]); Thu, 14 Sep 2023 03:39:39 -0700 (PDT) On 14/09/2023 07:41, John Garry wrote: > On 13/09/2023 16:33, James Clark wrote: >> pmu_events_table__find() is no longer used so remove it and its Arm >> specific version. >> >> Reviewed-by: Ian Rogers >> Signed-off-by: James Clark >> --- > > You really should put the name of the function in the subject. Apart > from that: > > Reviewed-by: John Garry > Noted, will do next time. Thanks for the reviews. >>   tools/perf/arch/arm64/util/pmu.c | 10 ---------- >>   tools/perf/util/pmu.c            |  5 ----- >>   tools/perf/util/pmu.h            |  1 - >>   3 files changed, 16 deletions(-) >> >> diff --git a/tools/perf/arch/arm64/util/pmu.c >> b/tools/perf/arch/arm64/util/pmu.c >> index 3099f5f448ba..2a4eab2d160e 100644 >> --- a/tools/perf/arch/arm64/util/pmu.c >> +++ b/tools/perf/arch/arm64/util/pmu.c >> @@ -24,16 +24,6 @@ const struct pmu_metrics_table >> *pmu_metrics_table__find(void) >>       return NULL; >>   } >>   -const struct pmu_events_table *pmu_events_table__find(void) >> -{ >> -    struct perf_pmu *pmu = perf_pmus__find_core_pmu(); >> - >> -    if (pmu) >> -        return perf_pmu__find_events_table(pmu); >> - >> -    return NULL; >> -} >> - >>   double perf_pmu__cpu_slots_per_cycle(void) >>   { >>       char path[PATH_MAX]; >> diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c >> index f50a5636633f..0d81c059c91c 100644 >> --- a/tools/perf/util/pmu.c >> +++ b/tools/perf/util/pmu.c >> @@ -776,11 +776,6 @@ char *perf_pmu__getcpuid(struct perf_pmu *pmu) >>       return cpuid; >>   } >>   -__weak const struct pmu_events_table *pmu_events_table__find(void) >> -{ >> -    return perf_pmu__find_events_table(NULL); >> -} >> - >>   __weak const struct pmu_metrics_table *pmu_metrics_table__find(void) >>   { >>       return perf_pmu__find_metrics_table(NULL); >> diff --git a/tools/perf/util/pmu.h b/tools/perf/util/pmu.h >> index d7b46085642d..04b317b17d66 100644 >> --- a/tools/perf/util/pmu.h >> +++ b/tools/perf/util/pmu.h >> @@ -238,7 +238,6 @@ void pmu_add_cpu_aliases_table(struct perf_pmu *pmu, >>                      const struct pmu_events_table *table); >>     char *perf_pmu__getcpuid(struct perf_pmu *pmu); >> -const struct pmu_events_table *pmu_events_table__find(void); >>   const struct pmu_metrics_table *pmu_metrics_table__find(void); >>     int perf_pmu__convert_scale(const char *scale, char **end, double >> *sval); >