Skip to content

Commit 70360fa

Browse files
James-A-Clarknamhyung
authored andcommitted
perf pmu: Remove unused function
pmu_events_table__find() is no longer used so remove it and its Arm specific version. Signed-off-by: James Clark <[email protected]> Reviewed-by: Ian Rogers <[email protected]> Reviewed-by: John Garry <[email protected]> Cc: Ravi Bangoria <[email protected]> Cc: Eduard Zingerman <[email protected]> Cc: Will Deacon <[email protected]> Cc: Leo Yan <[email protected]> Cc: Mike Leach <[email protected]> Cc: Jing Zhang <[email protected]> Cc: Haixin Yu <[email protected]> Cc: Kan Liang <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
1 parent 105e5b4 commit 70360fa

File tree

3 files changed

+0
-16
lines changed

3 files changed

+0
-16
lines changed

tools/perf/arch/arm64/util/pmu.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,6 @@ const struct pmu_metrics_table *pmu_metrics_table__find(void)
2424
return NULL;
2525
}
2626

27-
const struct pmu_events_table *pmu_events_table__find(void)
28-
{
29-
struct perf_pmu *pmu = perf_pmus__find_core_pmu();
30-
31-
if (pmu)
32-
return perf_pmu__find_events_table(pmu);
33-
34-
return NULL;
35-
}
36-
3727
double perf_pmu__cpu_slots_per_cycle(void)
3828
{
3929
char path[PATH_MAX];

tools/perf/util/pmu.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -776,11 +776,6 @@ char *perf_pmu__getcpuid(struct perf_pmu *pmu)
776776
return cpuid;
777777
}
778778

779-
__weak const struct pmu_events_table *pmu_events_table__find(void)
780-
{
781-
return perf_pmu__find_events_table(NULL);
782-
}
783-
784779
__weak const struct pmu_metrics_table *pmu_metrics_table__find(void)
785780
{
786781
return perf_pmu__find_metrics_table(NULL);

tools/perf/util/pmu.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ void pmu_add_cpu_aliases_table(struct perf_pmu *pmu,
238238
const struct pmu_events_table *table);
239239

240240
char *perf_pmu__getcpuid(struct perf_pmu *pmu);
241-
const struct pmu_events_table *pmu_events_table__find(void);
242241
const struct pmu_metrics_table *pmu_metrics_table__find(void);
243242

244243
int perf_pmu__convert_scale(const char *scale, char **end, double *sval);

0 commit comments

Comments
 (0)