Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1380625rdb; Mon, 4 Sep 2023 11:49:10 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFGEf9ZQe0AzDODWpJmV2V8A2Op459MC2YdTlf5s3QyKaHccaWbb00ItQzYrGMbuhZ9WCOd X-Received: by 2002:a17:906:cc18:b0:9a5:ce62:6e19 with SMTP id ml24-20020a170906cc1800b009a5ce626e19mr7263303ejb.69.1693853350094; Mon, 04 Sep 2023 11:49:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693853350; cv=none; d=google.com; s=arc-20160816; b=jfQ2Y1pHXl1vRMWt2a1p0AC5Eevp/qkpzQ3BcqEyUrZPUH9rCBvo1IqaBSsitcyaKx lwmHS90QkXti7RHDNAJ4xS6WYbNvYs7HtyF14EzT5lBhP7eU76/KK6cerOfyLc8FaMvT cWx4TBEHUBsvHySkPbOgd0k4z2nW6mfA7dJk8YkGEajrDJPKj12nG8zFbU0oD77s4W9B GrxHIrVeFwWbMXDmp2XuGI9lf7tHwRon+8UeRFB5yO0HTWIH34XkfYwdhRLmg5qjzxyn DJ81WgdIAmkFOFghcF4vkRtJHbuLg+aAdgbTD1VCQ+A1L0YwXr4DDukpISz64PShMjTe XHrA== 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=0mWxcB/iT8MkoQSikajFr1rMEs5AEdB4rmGHVVB878Y=; fh=J9Q3ZlSGSorjo3LWiOMrOlZUOOyxMIz74XdPmrLGpPo=; b=m9rGrC6sBnjN5zhgeKSzTbIj0TBRgq0ryK92F47jkm+xx4APjGN6KMHvYuitHWH7Qk /I/H4SuHjjVzPteko7nlvI71FysKzStFtu16LOkFMGecQXbcoChjunlIm8HNDEfecJPR 5KRk2NgY21BC4vLxBJ3aPd1AWsBNLNSIxY63r3BMaZ5f7+wcuqGz8EagrND8ZIK25RYz 0ej8wFGv0xDK87f9eSHwjuIS/p151VIc8BC5gcrf7pqXOZhAxynLl9aotSElqvyZzXgY Y7pSqx1/m3Dxz8Rgx/JXNr8dkKLoY1fYXnZnyWqKv1gBQjarO0GIT/aEW3m23vlOhC82 v2xQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g3-20020a170906594300b0098da7ffc5a2si6195451ejr.222.2023.09.04.11.48.42; Mon, 04 Sep 2023 11:49:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349939AbjIDKY7 (ORCPT + 99 others); Mon, 4 Sep 2023 06:24:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352745AbjIDJyK (ORCPT ); Mon, 4 Sep 2023 05:54:10 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 24C57CC5; Mon, 4 Sep 2023 02:53:56 -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 DC4A3143D; Mon, 4 Sep 2023 02:54:33 -0700 (PDT) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 76E9D3F793; Mon, 4 Sep 2023 02:53:52 -0700 (PDT) From: James Clark To: linux-perf-users@vger.kernel.org, irogers@google.com Cc: James Clark , John Garry , Will Deacon , Mike Leach , Leo Yan , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , Kan Liang , Haixin Yu , Jing Zhang , Kajol Jain , Madhavan Srinivasan , Ravi Bangoria , Yang Jihong , Eduard Zingerman , Liam Howlett , Chen Zhongjin , Miguel Ojeda , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 7/7] perf pmu: Remove unused function Date: Mon, 4 Sep 2023 10:50:49 +0100 Message-Id: <20230904095104.1162928-8-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230904095104.1162928-1-james.clark@arm.com> References: <20230904095104.1162928-1-james.clark@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 0a4080ca7949..311195e9688a 100644 --- a/tools/perf/util/pmu.c +++ b/tools/perf/util/pmu.c @@ -775,11 +775,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 45079f26abf6..4b9386534d2a 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