diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-11-05 06:41:51 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-11-28 07:25:11 -0500 |
commit | a8c9ae18d810e1ae12b6ec960907e9af63171d3a (patch) | |
tree | aaeb04c5a0fa18bbafab7bb548142bca36968f02 /tools/perf/util/evlist.h | |
parent | 50d08e47bc04eb05502f5c86b70bbd19ef1c2778 (diff) |
perf evlist: Introduce add_tracepoints method
Convenient way of asking for tracepoint events to be added to an
existing evlist.
Cc: David Ahern <dsahern@gmail.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/n/tip-0ylj4wrg54791u0baqb9swbb@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/evlist.h')
-rw-r--r-- | tools/perf/util/evlist.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/util/evlist.h b/tools/perf/util/evlist.h index 57d91ff2c56a..ec71c82935bd 100644 --- a/tools/perf/util/evlist.h +++ b/tools/perf/util/evlist.h | |||
@@ -43,10 +43,15 @@ void perf_evlist__add(struct perf_evlist *evlist, struct perf_evsel *entry); | |||
43 | int perf_evlist__add_default(struct perf_evlist *evlist); | 43 | int perf_evlist__add_default(struct perf_evlist *evlist); |
44 | int perf_evlist__add_attrs(struct perf_evlist *evlist, | 44 | int perf_evlist__add_attrs(struct perf_evlist *evlist, |
45 | struct perf_event_attr *attrs, size_t nr_attrs); | 45 | struct perf_event_attr *attrs, size_t nr_attrs); |
46 | int perf_evlist__add_tracepoints(struct perf_evlist *evlist, | ||
47 | const char *tracepoints[], size_t nr_tracepoints); | ||
46 | 48 | ||
47 | #define perf_evlist__add_attrs_array(evlist, array) \ | 49 | #define perf_evlist__add_attrs_array(evlist, array) \ |
48 | perf_evlist__add_attrs(evlist, array, ARRAY_SIZE(array)) | 50 | perf_evlist__add_attrs(evlist, array, ARRAY_SIZE(array)) |
49 | 51 | ||
52 | #define perf_evlist__add_tracepoints_array(evlist, array) \ | ||
53 | perf_evlist__add_tracepoints(evlist, array, ARRAY_SIZE(array)) | ||
54 | |||
50 | void perf_evlist__id_add(struct perf_evlist *evlist, struct perf_evsel *evsel, | 55 | void perf_evlist__id_add(struct perf_evlist *evlist, struct perf_evsel *evsel, |
51 | int cpu, int thread, u64 id); | 56 | int cpu, int thread, u64 id); |
52 | 57 | ||