summaryrefslogtreecommitdiffstats
path: root/tools/lib/perf/tests/test-evsel.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/perf/tests/test-evsel.c')
-rw-r--r--tools/lib/perf/tests/test-evsel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/perf/tests/test-evsel.c b/tools/lib/perf/tests/test-evsel.c
index a11fc51bfb..545ec31505 100644
--- a/tools/lib/perf/tests/test-evsel.c
+++ b/tools/lib/perf/tests/test-evsel.c
@@ -27,7 +27,7 @@ static int test_stat_cpu(void)
};
int err, idx;
- cpus = perf_cpu_map__new(NULL);
+ cpus = perf_cpu_map__new_online_cpus();
__T("failed to create cpus", cpus);
evsel = perf_evsel__new(&attr);