Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp3324941rdb; Wed, 13 Sep 2023 08:43:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHsrLfm2nwK+dFdbXP6rzwSGZU+5SQ0+rNARuQ/DSx6bwiAgDR+gpkTa6oWAkt6NagmWlKZ X-Received: by 2002:a05:6870:e394:b0:1b4:4a2e:33f1 with SMTP id x20-20020a056870e39400b001b44a2e33f1mr3032440oad.29.1694619798013; Wed, 13 Sep 2023 08:43:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694619797; cv=none; d=google.com; s=arc-20160816; b=lmkoX63d8q2Pc1qA7FDc3yT/Up3+TZMcP1hPTQqXN7aJmO4HipCH5J5tEh5M/j5Z6L G9guxiG/V/xwiWDNF02yY07HjF1QuSsVAoGh7if+TOJ0FIKrR3Ioc5hC2fA2Hxr47syv 8uW2wjGrP3Af0hzSGbTZgaHaOo2kzjUT3jlopXEgP66nJRpW8IB1fjjejUpec+124OQd rFB2VOMiqIPa0Og3Rpg8Jhaz6+IHQb8rburz2Z+mHpbxZB6aLxvAqe9wbMKIbLTDjp9G zptc/LyqVUZDQ4fxcE1fblLKMtV/ymaIfX3qdHw78URIoLvGUrcoWnNCxm4AruCg1tfg QeEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=vhcXEGrYv3JwR174LWuY0pVjGRG1XQjPZWzSCEpiO1Y=; fh=avf+MRtEM7LDBJ6J8Zfb0DAkB4upBW3mgtIspi65OHY=; b=gTBY+eL4egCFoPOOwKsclYI6STuFyH9dfYgHLf5ZQKAUHGg+33Hszqrcxs56wHIjQz 3Warow2ZTA1tRq0nKcQfeiFpDs9CnOsnOwmV57lbT3VSDI6dfbnwY1zefKh46XFQvdKq ecSA3Gt7n9FBllAwOtPoVxq57+7aZ6OYKAw/Wa8u+0chdnGcv6QCWQvgeQRMpGgvF4TM TBboLtZfimJk6DJ0wjBoFbaup54a+EAeQo1RAHRYOGFrA/gb5Y98aE+HEcsr3JNV1CxO adZyDeJwbs2O87huF+ehxpDhAb0iW+xV2aGF1QIrLajWFWz5XoRsNofCZS/Fv7XvC59N Y9Jw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id bz34-20020a056a02062200b00565ead2509asi10588858pgb.199.2023.09.13.08.43.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Sep 2023 08:43:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 9A464806E3F9; Wed, 13 Sep 2023 08:35:21 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229586AbjIMPe6 (ORCPT + 99 others); Wed, 13 Sep 2023 11:34:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229706AbjIMPez (ORCPT ); Wed, 13 Sep 2023 11:34:55 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EE23FCCD; Wed, 13 Sep 2023 08:34:51 -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 945511FB; Wed, 13 Sep 2023 08:35:28 -0700 (PDT) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id C1C753F5A1; Wed, 13 Sep 2023 08:34:47 -0700 (PDT) From: James Clark To: linux-perf-users@vger.kernel.org, irogers@google.com, acme@kernel.org Cc: James Clark , John Garry , 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 Subject: [PATCH v3 3/3] perf pmu: Remove unused function Date: Wed, 13 Sep 2023 16:33:50 +0100 Message-Id: <20230913153355.138331-4-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230913153355.138331-1-james.clark@arm.com> References: <20230913153355.138331-1-james.clark@arm.com> MIME-Version: 1.0 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 (lipwig.vger.email [0.0.0.0]); Wed, 13 Sep 2023 08:35:21 -0700 (PDT) X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email 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 --- 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); -- 2.34.1