mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
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>
This commit is contained in:
parent
608127f737
commit
c0e53476ab
4 changed files with 32 additions and 34 deletions
|
@ -118,6 +118,13 @@ void perf_evlist__stop_sb_thread(struct evlist *evlist);
|
|||
int perf_evlist__add_newtp(struct evlist *evlist,
|
||||
const char *sys, const char *name, void *handler);
|
||||
|
||||
int __evlist__set_tracepoints_handlers(struct evlist *evlist,
|
||||
const struct evsel_str_handler *assocs,
|
||||
size_t nr_assocs);
|
||||
|
||||
#define evlist__set_tracepoints_handlers(evlist, array) \
|
||||
__evlist__set_tracepoints_handlers(evlist, array, ARRAY_SIZE(array))
|
||||
|
||||
void __perf_evlist__set_sample_bit(struct evlist *evlist,
|
||||
enum perf_event_sample_format bit);
|
||||
void __perf_evlist__reset_sample_bit(struct evlist *evlist,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue