summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/pmu.h
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2017-08-31 21:40:30 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-09-13 14:49:13 +0200
commitd77ade9f4199c77c63e2ae382a8c8fbe0582ede2 (patch)
tree5b74bca309678549b8ed3f306d0f65d7eb0f09f2 /tools/perf/util/pmu.h
parentperf stat: Print generic metric header even for failed expressions (diff)
downloadlinux-d77ade9f4199c77c63e2ae382a8c8fbe0582ede2.tar.xz
linux-d77ade9f4199c77c63e2ae382a8c8fbe0582ede2.zip
perf pmu: Extract function to get JSON alias map
Extract the code to get the per cpu JSON alias into a separate function for reuse. No behavior changes. Signed-off-by: Andi Kleen <ak@linux.intel.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Link: http://lkml.kernel.org/r/20170831194036.30146-6-andi@firstfloor.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/pmu.h')
-rw-r--r--tools/perf/util/pmu.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/pmu.h b/tools/perf/util/pmu.h
index 389e9729331f..060f6abba8ed 100644
--- a/tools/perf/util/pmu.h
+++ b/tools/perf/util/pmu.h
@@ -90,4 +90,6 @@ int perf_pmu__test(void);
struct perf_event_attr *perf_pmu__get_default_config(struct perf_pmu *pmu);
+struct pmu_events_map *perf_pmu__find_map(void);
+
#endif /* __PMU_H */