summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/evsel.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2011-01-29 14:01:45 -0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-01-29 16:25:37 -0200
commit8115d60c323dd9931b95221c0a392aeddc1d6ef3 (patch)
tree13e75d71c5163c78efc9d8ab33988cc6c7be74a1 /tools/perf/util/evsel.c
parent8d50e5b4171a69cf48ca94a1e7c14033d0b4771d (diff)
downloadlinux-8115d60c323dd9931b95221c0a392aeddc1d6ef3.tar.gz
linux-8115d60c323dd9931b95221c0a392aeddc1d6ef3.tar.bz2
linux-8115d60c323dd9931b95221c0a392aeddc1d6ef3.zip
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.c10
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:
return -1;
}
-static int event__parse_id_sample(const event_t *event, u64 type,
- struct perf_sample *sample)
+static int perf_event__parse_id_sample(const union perf_event *event, u64 type,
+ struct perf_sample *sample)
{
const u64 *array = event->sample.array;
@@ -405,8 +405,8 @@ static int event__parse_id_sample(const event_t *event, u64 type,
return 0;
}
-int event__parse_sample(const event_t *event, u64 type, bool sample_id_all,
- struct perf_sample *data)
+int perf_event__parse_sample(const union perf_event *event, u64 type,
+ bool sample_id_all, struct perf_sample *data)
{
const u64 *array;
@@ -416,7 +416,7 @@ int event__parse_sample(const event_t *event, u64 type, bool sample_id_all,
if (event->header.type != PERF_RECORD_SAMPLE) {
if (!sample_id_all)
return 0;
- return event__parse_id_sample(event, type, data);
+ return perf_event__parse_id_sample(event, type, data);
}
array = event->sample.array;