perf evlist: Use libperf functions in evlist__enable_event_idx()
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 6 May 2022 12:25:41 +0000 (15:25 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 10 May 2022 17:22:47 +0000 (14:22 -0300)
commita40bb7518e78afb2958bc5857c8c72d753655245
tree249dc226c82a511d00af377ab1e528191e2201a9
parent00632610c2f0b732ae87b8c7e7e1375abaeb01a0
perf evlist: Use libperf functions in evlist__enable_event_idx()

evlist__enable_event_idx() is used only for auxtrace events which are never
system_wide. Simplify by using libperf enable event functions.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Ian Rogers <irogers@google.com>
Cc: Alexey Bayduraev <alexey.v.bayduraev@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Leo Yan <leo.yan@linaro.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: http://lore.kernel.org/lkml/20220506122601.367589-4-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c