perf evsel: Move and globalize perf_evsel__find_pmu() and perf_evsel__is_aux_event()
authorAdrian Hunter <adrian.hunter@intel.com>
Wed, 1 Apr 2020 10:16:09 +0000 (13:16 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 18 Apr 2020 12:04:32 +0000 (09:04 -0300)
commite12ee9f7513cb5dbe8b12aac030dfbeff35b3766
tree8ee29bd8bf603a67685465dd61e6e2330cba5eca
parent2855c05cf14a5ee0d3b58168632acb11ea35721f
perf evsel: Move and globalize perf_evsel__find_pmu() and perf_evsel__is_aux_event()

Move and globalize 2 functions from the auxtrace specific sources so
that they can be reused.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lore.kernel.org/lkml/20200401101613.6201-13-adrian.hunter@intel.com
[ Move to pmu.c, as moving to evsel.h breaks the python binding ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/auxtrace.c
tools/perf/util/evsel.h
tools/perf/util/pmu.c