perf pmu: Extract function to get JSON alias map
authorAndi Kleen <ak@linux.intel.com>
Thu, 31 Aug 2017 19:40:30 +0000 (12:40 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 13 Sep 2017 12:49:13 +0000 (09:49 -0300)
commitd77ade9f4199c77c63e2ae382a8c8fbe0582ede2
tree5b74bca309678549b8ed3f306d0f65d7eb0f09f2
parent4ed962eb38c8a33b8b6ded911410afaefa1ca48c
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>
tools/perf/util/pmu.c
tools/perf/util/pmu.h