diff options
| author | Tom Zanussi <tzanussi@gmail.com> | 2009-10-06 02:09:51 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-10-06 09:04:46 -0400 |
| commit | 2774601811bedd04ee7e38624343ea80b4a62d7e (patch) | |
| tree | 7338bfb51cbcdfa24beaeba885f88a9b5bb3fbb3 /tools/perf/util/trace-event-parse.c | |
| parent | 26a50744b21fff65bd754874072857bee8967f4d (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-parse.c')
| -rw-r--r-- | tools/perf/util/trace-event-parse.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/util/trace-event-parse.c b/tools/perf/util/trace-event-parse.c index be8412d699a1..de3fc8bf8bfe 100644 --- a/tools/perf/util/trace-event-parse.c +++ b/tools/perf/util/trace-event-parse.c | |||
| @@ -2950,7 +2950,7 @@ int parse_ftrace_file(char *buf, unsigned long size) | |||
| 2950 | return 0; | 2950 | return 0; |
| 2951 | } | 2951 | } |
| 2952 | 2952 | ||
| 2953 | int parse_event_file(char *buf, unsigned long size, char *system__unused __unused) | 2953 | int parse_event_file(char *buf, unsigned long size, char *sys) |
| 2954 | { | 2954 | { |
| 2955 | struct event *event; | 2955 | struct event *event; |
| 2956 | int ret; | 2956 | int ret; |
| @@ -2977,6 +2977,8 @@ int parse_event_file(char *buf, unsigned long size, char *system__unused __unuse | |||
| 2977 | if (ret < 0) | 2977 | if (ret < 0) |
| 2978 | die("failed to read event print fmt"); | 2978 | die("failed to read event print fmt"); |
| 2979 | 2979 | ||
| 2980 | event->system = strdup(sys); | ||
| 2981 | |||
| 2980 | #define PRINT_ARGS 0 | 2982 | #define PRINT_ARGS 0 |
| 2981 | if (PRINT_ARGS && event->print_fmt.args) | 2983 | if (PRINT_ARGS && event->print_fmt.args) |
| 2982 | print_args(event->print_fmt.args); | 2984 | print_args(event->print_fmt.args); |
