diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-01-29 11:01:45 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2011-01-29 13:25:37 -0500 |
commit | 8115d60c323dd9931b95221c0a392aeddc1d6ef3 (patch) | |
tree | 13e75d71c5163c78efc9d8ab33988cc6c7be74a1 /tools/perf/builtin-script.c | |
parent | 8d50e5b4171a69cf48ca94a1e7c14033d0b4771d (diff) |
perf tools: Kill event_t typedef, use 'union perf_event' instead
And move the event_t methods to the perf_event__ too.
No code changes, just namespace consistency.
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Tom Zanussi <tzanussi@gmail.com>
LKML-Reference: <new-submission>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-script.c')
-rw-r--r-- | tools/perf/builtin-script.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/tools/perf/builtin-script.c b/tools/perf/builtin-script.c index 5c4c809008af..5f40df635dcb 100644 --- a/tools/perf/builtin-script.c +++ b/tools/perf/builtin-script.c | |||
@@ -63,7 +63,8 @@ static int cleanup_scripting(void) | |||
63 | 63 | ||
64 | static char const *input_name = "perf.data"; | 64 | static char const *input_name = "perf.data"; |
65 | 65 | ||
66 | static int process_sample_event(event_t *event, struct perf_sample *sample, | 66 | static int process_sample_event(union perf_event *event, |
67 | struct perf_sample *sample, | ||
67 | struct perf_session *session) | 68 | struct perf_session *session) |
68 | { | 69 | { |
69 | struct thread *thread = perf_session__findnew(session, event->ip.pid); | 70 | struct thread *thread = perf_session__findnew(session, event->ip.pid); |
@@ -100,14 +101,14 @@ static int process_sample_event(event_t *event, struct perf_sample *sample, | |||
100 | } | 101 | } |
101 | 102 | ||
102 | static struct perf_event_ops event_ops = { | 103 | static struct perf_event_ops event_ops = { |
103 | .sample = process_sample_event, | 104 | .sample = process_sample_event, |
104 | .comm = event__process_comm, | 105 | .comm = perf_event__process_comm, |
105 | .attr = event__process_attr, | 106 | .attr = perf_event__process_attr, |
106 | .event_type = event__process_event_type, | 107 | .event_type = perf_event__process_event_type, |
107 | .tracing_data = event__process_tracing_data, | 108 | .tracing_data = perf_event__process_tracing_data, |
108 | .build_id = event__process_build_id, | 109 | .build_id = perf_event__process_build_id, |
109 | .ordering_requires_timestamps = true, | ||
110 | .ordered_samples = true, | 110 | .ordered_samples = true, |
111 | .ordering_requires_timestamps = true, | ||
111 | }; | 112 | }; |
112 | 113 | ||
113 | extern volatile int session_done; | 114 | extern volatile int session_done; |