perf evlist: Adopt __set_tracepoint_handlers method from perf_session
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 1 Oct 2019 14:14:26 +0000 (11:14 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 7 Oct 2019 15:22:17 +0000 (12:22 -0300)
commitc0e53476ab5087353547cbcd37f001d98941326c
tree1893f1e0acc2b96099ddbefd59f67e5b7717213b
parent608127f73779bfc199158b61efdbdb690720e542
perf evlist: Adopt __set_tracepoint_handlers method from perf_session

It all operates on the evsels in the session's evlist, so move it to the
evlist layer to make it useful to tools not using perf_session, just
evlists, like 'perf trace' in live mode.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-9oc53gnfi53vg82fvolkm85g@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c
tools/perf/util/evlist.h
tools/perf/util/session.c
tools/perf/util/session.h