diff options
author | Ingo Molnar <mingo@elte.hu> | 2010-05-04 20:31:47 +0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-05-04 20:31:47 +0400 |
commit | c4f3b5a2d70eae4abb8bcaaf8dc3f067ff1714e8 (patch) | |
tree | 54b857fc96f423ee3fcd4b8752169024ad8ebdb1 /tools/perf/util/trace-event-info.c | |
parent | 777d0411cd1e384115985dac5ccd42031e3eee2b (diff) | |
parent | 02bf60aad7d5912dfcdbe0154f1bd67ea7a8301e (diff) | |
download | linux-c4f3b5a2d70eae4abb8bcaaf8dc3f067ff1714e8.tar.xz |
Merge branch 'perf' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux-2.6 into perf/core
Diffstat (limited to 'tools/perf/util/trace-event-info.c')
-rw-r--r-- | tools/perf/util/trace-event-info.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/util/trace-event-info.c b/tools/perf/util/trace-event-info.c index 30cd9b575953..0a1fb9d4f3b6 100644 --- a/tools/perf/util/trace-event-info.c +++ b/tools/perf/util/trace-event-info.c @@ -487,6 +487,11 @@ get_tracepoints_path(struct perf_event_attr *pattrs, int nb_events) return nr_tracepoints > 0 ? path.next : NULL; } +bool have_tracepoints(struct perf_event_attr *pattrs, int nb_events) +{ + return get_tracepoints_path(pattrs, nb_events) ? true : false; +} + int read_tracing_data(int fd, struct perf_event_attr *pattrs, int nb_events) { char buf[BUFSIZ]; |