diff options
Diffstat (limited to 'tools/perf/util/evlist.h')
-rw-r--r-- | tools/perf/util/evlist.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/tools/perf/util/evlist.h b/tools/perf/util/evlist.h index 3f1fb66be022..56003f779e60 100644 --- a/tools/perf/util/evlist.h +++ b/tools/perf/util/evlist.h | |||
@@ -51,26 +51,14 @@ void perf_evlist__delete(struct perf_evlist *evlist); | |||
51 | 51 | ||
52 | void perf_evlist__add(struct perf_evlist *evlist, struct perf_evsel *entry); | 52 | void perf_evlist__add(struct perf_evlist *evlist, struct perf_evsel *entry); |
53 | int perf_evlist__add_default(struct perf_evlist *evlist); | 53 | int perf_evlist__add_default(struct perf_evlist *evlist); |
54 | int perf_evlist__add_attrs(struct perf_evlist *evlist, | ||
55 | struct perf_event_attr *attrs, size_t nr_attrs); | ||
56 | int __perf_evlist__add_default_attrs(struct perf_evlist *evlist, | 54 | int __perf_evlist__add_default_attrs(struct perf_evlist *evlist, |
57 | struct perf_event_attr *attrs, size_t nr_attrs); | 55 | struct perf_event_attr *attrs, size_t nr_attrs); |
58 | int perf_evlist__add_tracepoints(struct perf_evlist *evlist, | 56 | |
59 | const char *tracepoints[], size_t nr_tracepoints); | ||
60 | int perf_evlist__set_tracepoints_handlers(struct perf_evlist *evlist, | ||
61 | const struct perf_evsel_str_handler *assocs, | ||
62 | size_t nr_assocs); | ||
63 | |||
64 | #define perf_evlist__add_attrs_array(evlist, array) \ | ||
65 | perf_evlist__add_attrs(evlist, array, ARRAY_SIZE(array)) | ||
66 | #define perf_evlist__add_default_attrs(evlist, array) \ | 57 | #define perf_evlist__add_default_attrs(evlist, array) \ |
67 | __perf_evlist__add_default_attrs(evlist, array, ARRAY_SIZE(array)) | 58 | __perf_evlist__add_default_attrs(evlist, array, ARRAY_SIZE(array)) |
68 | 59 | ||
69 | #define perf_evlist__add_tracepoints_array(evlist, array) \ | 60 | int perf_evlist__add_newtp(struct perf_evlist *evlist, |
70 | perf_evlist__add_tracepoints(evlist, array, ARRAY_SIZE(array)) | 61 | const char *sys, const char *name, void *handler); |
71 | |||
72 | #define perf_evlist__set_tracepoints_handlers_array(evlist, array) \ | ||
73 | perf_evlist__set_tracepoints_handlers(evlist, array, ARRAY_SIZE(array)) | ||
74 | 62 | ||
75 | int perf_evlist__set_filter(struct perf_evlist *evlist, const char *filter); | 63 | int perf_evlist__set_filter(struct perf_evlist *evlist, const char *filter); |
76 | 64 | ||