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-lock.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-lock.c')
-rw-r--r-- | tools/perf/builtin-lock.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/builtin-lock.c b/tools/perf/builtin-lock.c index c3f512791344..e00d93847c44 100644 --- a/tools/perf/builtin-lock.c +++ b/tools/perf/builtin-lock.c | |||
@@ -834,14 +834,14 @@ static void dump_info(void) | |||
834 | die("Unknown type of information\n"); | 834 | die("Unknown type of information\n"); |
835 | } | 835 | } |
836 | 836 | ||
837 | static int process_sample_event(event_t *self, struct perf_sample *sample, | 837 | static int process_sample_event(union perf_event *event, struct perf_sample *sample, |
838 | struct perf_session *s) | 838 | struct perf_session *s) |
839 | { | 839 | { |
840 | struct thread *thread = perf_session__findnew(s, sample->tid); | 840 | struct thread *thread = perf_session__findnew(s, sample->tid); |
841 | 841 | ||
842 | if (thread == NULL) { | 842 | if (thread == NULL) { |
843 | pr_debug("problem processing %d event, skipping it.\n", | 843 | pr_debug("problem processing %d event, skipping it.\n", |
844 | self->header.type); | 844 | event->header.type); |
845 | return -1; | 845 | return -1; |
846 | } | 846 | } |
847 | 847 | ||
@@ -852,7 +852,7 @@ static int process_sample_event(event_t *self, struct perf_sample *sample, | |||
852 | 852 | ||
853 | static struct perf_event_ops eops = { | 853 | static struct perf_event_ops eops = { |
854 | .sample = process_sample_event, | 854 | .sample = process_sample_event, |
855 | .comm = event__process_comm, | 855 | .comm = perf_event__process_comm, |
856 | .ordered_samples = true, | 856 | .ordered_samples = true, |
857 | }; | 857 | }; |
858 | 858 | ||