summaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-info.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2010-05-04 20:31:47 +0400
committerIngo Molnar <mingo@elte.hu>2010-05-04 20:31:47 +0400
commitc4f3b5a2d70eae4abb8bcaaf8dc3f067ff1714e8 (patch)
tree54b857fc96f423ee3fcd4b8752169024ad8ebdb1 /tools/perf/util/trace-event-info.c
parent777d0411cd1e384115985dac5ccd42031e3eee2b (diff)
parent02bf60aad7d5912dfcdbe0154f1bd67ea7a8301e (diff)
downloadlinux-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.c5
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];