aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-test.c')
-rw-r--r--tools/perf/builtin-test.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/tools/perf/builtin-test.c b/tools/perf/builtin-test.c
index e5032ed2f259..1d592f5cbea9 100644
--- a/tools/perf/builtin-test.c
+++ b/tools/perf/builtin-test.c
@@ -562,9 +562,7 @@ static int test__basic_mmap(void)
562 goto out_munmap; 562 goto out_munmap;
563 } 563 }
564 564
565 err = perf_event__parse_sample(event, attr.sample_type, 565 err = perf_evlist__parse_sample(evlist, event, &sample, false);
566 evsels[0]->sample_size,
567 false, &sample, false);
568 if (err) { 566 if (err) {
569 pr_err("Can't parse sample, err = %d\n", err); 567 pr_err("Can't parse sample, err = %d\n", err);
570 goto out_munmap; 568 goto out_munmap;
@@ -781,9 +779,7 @@ static int test__PERF_RECORD(void)
781 if (type < PERF_RECORD_MAX) 779 if (type < PERF_RECORD_MAX)
782 nr_events[type]++; 780 nr_events[type]++;
783 781
784 err = perf_event__parse_sample(event, evsel->attr.sample_type, 782 err = perf_evlist__parse_sample(evlist, event, &sample, false);
785 evsel->sample_size, true,
786 &sample, false);
787 if (err < 0) { 783 if (err < 0) {
788 if (verbose) 784 if (verbose)
789 perf_event__fprintf(event, stderr); 785 perf_event__fprintf(event, stderr);