summaryrefslogtreecommitdiffstats
path: root/tools/perf/tests/event-times.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/tests/event-times.c')
-rw-r--r--tools/perf/tests/event-times.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/tests/event-times.c b/tools/perf/tests/event-times.c
index 00adba86403b..714e3611352c 100644
--- a/tools/perf/tests/event-times.c
+++ b/tools/perf/tests/event-times.c
@@ -196,7 +196,7 @@ static int test_times(int (attach)(struct evlist *),
TEST_ASSERT_VAL("failed to detach", !detach(evlist));
- perf_evsel__read(evsel, 0, 0, &count);
+ perf_evsel__read(&evsel->core, 0, 0, &count);
err = !(count.ena == count.run);