aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/trace-event.h
diff options
context:
space:
mode:
authorTom Zanussi <tzanussi@gmail.com>2009-10-06 02:09:51 -0400
committerIngo Molnar <mingo@elte.hu>2009-10-06 09:04:46 -0400
commit2774601811bedd04ee7e38624343ea80b4a62d7e (patch)
tree7338bfb51cbcdfa24beaeba885f88a9b5bb3fbb3 /tools/perf/util/trace-event.h
parent26a50744b21fff65bd754874072857bee8967f4d (diff)
perf trace: Add subsystem string to struct event
Needed to fully qualify event names for event stream processing. Signed-off-by: Tom Zanussi <tzanussi@gmail.com> Acked-by: Frederic Weisbecker <fweisbec@gmail.com> Cc: rostedt@goodmis.org Cc: lizf@cn.fujitsu.com Cc: hch@infradead.org Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> LKML-Reference: <1254809398-8078-3-git-send-email-tzanussi@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/trace-event.h')
-rw-r--r--tools/perf/util/trace-event.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/trace-event.h b/tools/perf/util/trace-event.h
index 00b440df66d8..cb92978be300 100644
--- a/tools/perf/util/trace-event.h
+++ b/tools/perf/util/trace-event.h
@@ -133,6 +133,7 @@ struct event {
133 int flags; 133 int flags;
134 struct format format; 134 struct format format;
135 struct print_fmt print_fmt; 135 struct print_fmt print_fmt;
136 char *system;
136}; 137};
137 138
138enum { 139enum {
@@ -167,7 +168,7 @@ void print_funcs(void);
167void print_printk(void); 168void print_printk(void);
168 169
169int parse_ftrace_file(char *buf, unsigned long size); 170int parse_ftrace_file(char *buf, unsigned long size);
170int parse_event_file(char *buf, unsigned long size, char *system); 171int parse_event_file(char *buf, unsigned long size, char *sys);
171void print_event(int cpu, void *data, int size, unsigned long long nsecs, 172void print_event(int cpu, void *data, int size, unsigned long long nsecs,
172 char *comm); 173 char *comm);
173 174