Skip to content

Commit 5b9a500

Browse files
John Garryacmel
John Garry
authored andcommittedMar 24, 2020
perf pmu: Make pmu_uncore_alias_match() public
The perf pmu-events test will want to use pmu_uncore_alias_match(), so make it public. Signed-off-by: John Garry <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Andi Kleen <[email protected]> Cc: James Clark <[email protected]> Cc: Joakim Zhang <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Will Deacon <[email protected]> Cc: [email protected] Link: http://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent d504fae commit 5b9a500

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed
 

‎tools/perf/util/pmu.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ struct pmu_events_map *perf_pmu__find_map(struct perf_pmu *pmu)
698698
return map;
699699
}
700700

701-
static bool pmu_uncore_alias_match(const char *pmu_name, const char *name)
701+
bool pmu_uncore_alias_match(const char *pmu_name, const char *name)
702702
{
703703
char *tmp = NULL, *tok, *str;
704704
bool res;

‎tools/perf/util/pmu.h

+1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ void pmu_add_cpu_aliases_map(struct list_head *head, struct perf_pmu *pmu,
103103
struct pmu_events_map *map);
104104

105105
struct pmu_events_map *perf_pmu__find_map(struct perf_pmu *pmu);
106+
bool pmu_uncore_alias_match(const char *pmu_name, const char *name);
106107

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

0 commit comments

Comments
 (0)
Please sign in to comment.