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/util/evsel.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/util/evsel.c')
-rw-r--r-- | tools/perf/util/evsel.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index a13488511880..fddeb08f48a7 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c | |||
@@ -367,8 +367,8 @@ out_unmap: | |||
367 | return -1; | 367 | return -1; |
368 | } | 368 | } |
369 | 369 | ||
370 | static int event__parse_id_sample(const event_t *event, u64 type, | 370 | static int perf_event__parse_id_sample(const union perf_event *event, u64 type, |
371 | struct perf_sample *sample) | 371 | struct perf_sample *sample) |
372 | { | 372 | { |
373 | const u64 *array = event->sample.array; | 373 | const u64 *array = event->sample.array; |
374 | 374 | ||
@@ -405,8 +405,8 @@ static int event__parse_id_sample(const event_t *event, u64 type, | |||
405 | return 0; | 405 | return 0; |
406 | } | 406 | } |
407 | 407 | ||
408 | int event__parse_sample(const event_t *event, u64 type, bool sample_id_all, | 408 | int perf_event__parse_sample(const union perf_event *event, u64 type, |
409 | struct perf_sample *data) | 409 | bool sample_id_all, struct perf_sample *data) |
410 | { | 410 | { |
411 | const u64 *array; | 411 | const u64 *array; |
412 | 412 | ||
@@ -416,7 +416,7 @@ int event__parse_sample(const event_t *event, u64 type, bool sample_id_all, | |||
416 | if (event->header.type != PERF_RECORD_SAMPLE) { | 416 | if (event->header.type != PERF_RECORD_SAMPLE) { |
417 | if (!sample_id_all) | 417 | if (!sample_id_all) |
418 | return 0; | 418 | return 0; |
419 | return event__parse_id_sample(event, type, data); | 419 | return perf_event__parse_id_sample(event, type, data); |
420 | } | 420 | } |
421 | 421 | ||
422 | array = event->sample.array; | 422 | array = event->sample.array; |