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-report.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-report.c')
-rw-r--r-- | tools/perf/builtin-report.c | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index bbbadcc04097..a6a4e5457b6f 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -149,13 +149,14 @@ static int add_event_total(struct perf_session *session, | |||
149 | return 0; | 149 | return 0; |
150 | } | 150 | } |
151 | 151 | ||
152 | static int process_sample_event(event_t *event, struct perf_sample *sample, | 152 | static int process_sample_event(union perf_event *event, |
153 | struct perf_sample *sample, | ||
153 | struct perf_session *session) | 154 | struct perf_session *session) |
154 | { | 155 | { |
155 | struct addr_location al; | 156 | struct addr_location al; |
156 | struct perf_event_attr *attr; | 157 | struct perf_event_attr *attr; |
157 | 158 | ||
158 | if (event__preprocess_sample(event, session, &al, sample, NULL) < 0) { | 159 | if (perf_event__preprocess_sample(event, session, &al, sample, NULL) < 0) { |
159 | fprintf(stderr, "problem processing %d event, skipping it.\n", | 160 | fprintf(stderr, "problem processing %d event, skipping it.\n", |
160 | event->header.type); | 161 | event->header.type); |
161 | return -1; | 162 | return -1; |
@@ -179,7 +180,8 @@ static int process_sample_event(event_t *event, struct perf_sample *sample, | |||
179 | return 0; | 180 | return 0; |
180 | } | 181 | } |
181 | 182 | ||
182 | static int process_read_event(event_t *event, struct perf_sample *sample __used, | 183 | static int process_read_event(union perf_event *event, |
184 | struct perf_sample *sample __used, | ||
183 | struct perf_session *session __used) | 185 | struct perf_session *session __used) |
184 | { | 186 | { |
185 | struct perf_event_attr *attr; | 187 | struct perf_event_attr *attr; |
@@ -232,17 +234,17 @@ static int perf_session__setup_sample_type(struct perf_session *self) | |||
232 | } | 234 | } |
233 | 235 | ||
234 | static struct perf_event_ops event_ops = { | 236 | static struct perf_event_ops event_ops = { |
235 | .sample = process_sample_event, | 237 | .sample = process_sample_event, |
236 | .mmap = event__process_mmap, | 238 | .mmap = perf_event__process_mmap, |
237 | .comm = event__process_comm, | 239 | .comm = perf_event__process_comm, |
238 | .exit = event__process_task, | 240 | .exit = perf_event__process_task, |
239 | .fork = event__process_task, | 241 | .fork = perf_event__process_task, |
240 | .lost = event__process_lost, | 242 | .lost = perf_event__process_lost, |
241 | .read = process_read_event, | 243 | .read = process_read_event, |
242 | .attr = event__process_attr, | 244 | .attr = perf_event__process_attr, |
243 | .event_type = event__process_event_type, | 245 | .event_type = perf_event__process_event_type, |
244 | .tracing_data = event__process_tracing_data, | 246 | .tracing_data = perf_event__process_tracing_data, |
245 | .build_id = event__process_build_id, | 247 | .build_id = perf_event__process_build_id, |
246 | .ordered_samples = true, | 248 | .ordered_samples = true, |
247 | .ordering_requires_timestamps = true, | 249 | .ordering_requires_timestamps = true, |
248 | }; | 250 | }; |