Received: by 2002:a05:7412:3210:b0:e2:908c:2ebd with SMTP id eu16csp797592rdb; Fri, 1 Sep 2023 04:45:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHE1l3LNQ7LY+N4DzoO+N3wszplnAFv7+0KUIzKICq/HTks9No2N6DElTCja0STAksCl52n X-Received: by 2002:a05:6402:687:b0:525:7da7:af10 with SMTP id f7-20020a056402068700b005257da7af10mr1777046edy.23.1693568702556; Fri, 01 Sep 2023 04:45:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693568702; cv=none; d=google.com; s=arc-20160816; b=cKEwDdZNb5age5t+Y3yNB4K+LxSui+yr6+2OSPKmIzI9Dtxy6PpgR9mBTC29fIjVC3 zoEiU19EPspO53/FxPl6bHHNVsa7+v7nncabQvTYSYrCJeAd47f7SiIUnqFIL0AfEBPC fcAQnUbsEO4DFZ/U7OV4W7kzuZ8Tb0aGVSlhkuc9y+rOfxnpnBJ+OV+eHMvfCa7zFrEo LSYAwExhzYKvP5d6kpXAUXuJecS3bgvZTes9LdQlWShQJAzGRNK2k76ffnCDT1/sOnIm GG4q/DWvljw5tEJkoMJsNcRDh0KeQeGWjmHpLH0Jly8b0u/G1c1Gl2OzTSWIPbW0xe+3 bFhg== 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=6im+Sk2Z8EiDFR1erp1Hgcv6PeFMtWLaMMeXDzbuQe0=; fh=nsZx/8v8tOprOCXiVnOak5Mb8OF9MLBR3Zn2wI+Eawg=; b=Q7x23Hetj36eplE00wOfJHDmcPLF65bqoUsfcJXEyUshBxiLl4euBwF2cXmjPXT2yL oJuG+SQJQdxnVtbyLxhzGbbhy9iH/0iNF2+P7KAMlyYe+Tl5aCJmAt1z66EFiZBFzqwo fWTc8LOBSkoEmcxiCT0LDnyn54kGXQZy3YXsOspa6vT8XF5T37bW+235ZzPK3djbf1tP Gvo9dX0qg1Go9SvEOwtULV7b22nucKJdnGUwJyjzulM5xDvWtD1WX2GY3cor3wX2vFwq q14SsfAAVvDkceaT2F1v5L/BKwvB2rUGvyo7yQDgQwcND3sK9PpvWSrXi/Q8SZQOCaiX Xznw== 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 y16-20020aa7c250000000b0052c162ef18esi2361901edo.185.2023.09.01.04.44.54; Fri, 01 Sep 2023 04:45:02 -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 S1346514AbjHaPTB (ORCPT + 30 others); Thu, 31 Aug 2023 11:19:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236867AbjHaPTB (ORCPT ); Thu, 31 Aug 2023 11:19:01 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 86EDCE74; Thu, 31 Aug 2023 08:18:52 -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 92EC9C15; Thu, 31 Aug 2023 08:19:31 -0700 (PDT) Received: from localhost.localdomain (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 529BA3F64C; Thu, 31 Aug 2023 08:18:48 -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 , Jing Zhang , Haixin Yu , Kajol Jain , Madhavan Srinivasan , Ravi Bangoria , Yang Jihong , Eduard Zingerman , Miguel Ojeda , Liam Howlett , Chen Zhongjin , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 7/7] perf pmu: Remove unused function Date: Thu, 31 Aug 2023 16:16:18 +0100 Message-Id: <20230831151632.124985-8-james.clark@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230831151632.124985-1-james.clark@arm.com> References: <20230831151632.124985-1-james.clark@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, 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. 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 8213e26783a1..f9d8525eec64 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