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-annotate.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-annotate.c')
-rw-r--r-- | tools/perf/builtin-annotate.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c index ef3675135414..70067862e07f 100644 --- a/tools/perf/builtin-annotate.c +++ b/tools/perf/builtin-annotate.c | |||
@@ -58,12 +58,13 @@ static int hists__add_entry(struct hists *self, struct addr_location *al) | |||
58 | return hist_entry__inc_addr_samples(he, al->addr); | 58 | return hist_entry__inc_addr_samples(he, al->addr); |
59 | } | 59 | } |
60 | 60 | ||
61 | static int process_sample_event(event_t *event, struct perf_sample *sample, | 61 | static int process_sample_event(union perf_event *event, |
62 | struct perf_sample *sample, | ||
62 | struct perf_session *session) | 63 | struct perf_session *session) |
63 | { | 64 | { |
64 | struct addr_location al; | 65 | struct addr_location al; |
65 | 66 | ||
66 | if (event__preprocess_sample(event, session, &al, sample, NULL) < 0) { | 67 | if (perf_event__preprocess_sample(event, session, &al, sample, NULL) < 0) { |
67 | pr_warning("problem processing %d event, skipping it.\n", | 68 | pr_warning("problem processing %d event, skipping it.\n", |
68 | event->header.type); | 69 | event->header.type); |
69 | return -1; | 70 | return -1; |
@@ -372,9 +373,9 @@ find_next: | |||
372 | 373 | ||
373 | static struct perf_event_ops event_ops = { | 374 | static struct perf_event_ops event_ops = { |
374 | .sample = process_sample_event, | 375 | .sample = process_sample_event, |
375 | .mmap = event__process_mmap, | 376 | .mmap = perf_event__process_mmap, |
376 | .comm = event__process_comm, | 377 | .comm = perf_event__process_comm, |
377 | .fork = event__process_task, | 378 | .fork = perf_event__process_task, |
378 | .ordered_samples = true, | 379 | .ordered_samples = true, |
379 | .ordering_requires_timestamps = true, | 380 | .ordering_requires_timestamps = true, |
380 | }; | 381 | }; |