aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-test.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2011-01-29 11:01:45 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-01-29 13:25:37 -0500
commit8115d60c323dd9931b95221c0a392aeddc1d6ef3 (patch)
tree13e75d71c5163c78efc9d8ab33988cc6c7be74a1 /tools/perf/builtin-test.c
parent8d50e5b4171a69cf48ca94a1e7c14033d0b4771d (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-test.c')
-rw-r--r--tools/perf/builtin-test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/builtin-test.c b/tools/perf/builtin-test.c
index df62433a34a7..845b9bd54ed4 100644
--- a/tools/perf/builtin-test.c
+++ b/tools/perf/builtin-test.c
@@ -454,7 +454,7 @@ out_thread_map_delete:
454static int test__basic_mmap(void) 454static int test__basic_mmap(void)
455{ 455{
456 int err = -1; 456 int err = -1;
457 event_t *event; 457 union perf_event *event;
458 struct thread_map *threads; 458 struct thread_map *threads;
459 struct cpu_map *cpus; 459 struct cpu_map *cpus;
460 struct perf_evlist *evlist; 460 struct perf_evlist *evlist;
@@ -554,11 +554,11 @@ static int test__basic_mmap(void)
554 554
555 if (event->header.type != PERF_RECORD_SAMPLE) { 555 if (event->header.type != PERF_RECORD_SAMPLE) {
556 pr_debug("unexpected %s event\n", 556 pr_debug("unexpected %s event\n",
557 event__get_event_name(event->header.type)); 557 perf_event__name(event->header.type));
558 goto out_munmap; 558 goto out_munmap;
559 } 559 }
560 560
561 event__parse_sample(event, attr.sample_type, false, &sample); 561 perf_event__parse_sample(event, attr.sample_type, false, &sample);
562 evsel = perf_evlist__id2evsel(evlist, sample.id); 562 evsel = perf_evlist__id2evsel(evlist, sample.id);
563 if (evsel == NULL) { 563 if (evsel == NULL) {
564 pr_debug("event with id %" PRIu64 564 pr_debug("event with id %" PRIu64