diff options
Diffstat (limited to 'tools/lib/perf/tests')
| -rw-r--r-- | tools/lib/perf/tests/test-cpumap.c | 4 | ||||
| -rw-r--r-- | tools/lib/perf/tests/test-evlist.c | 6 | ||||
| -rw-r--r-- | tools/lib/perf/tests/test-evsel.c | 2 | 
3 files changed, 6 insertions, 6 deletions
diff --git a/tools/lib/perf/tests/test-cpumap.c b/tools/lib/perf/tests/test-cpumap.c index 87b0510a556f..c998b1dae863 100644 --- a/tools/lib/perf/tests/test-cpumap.c +++ b/tools/lib/perf/tests/test-cpumap.c @@ -21,7 +21,7 @@ int test_cpumap(int argc, char **argv)  	libperf_init(libperf_print); -	cpus = perf_cpu_map__dummy_new(); +	cpus = perf_cpu_map__new_any_cpu();  	if (!cpus)  		return -1; @@ -29,7 +29,7 @@ int test_cpumap(int argc, char **argv)  	perf_cpu_map__put(cpus);  	perf_cpu_map__put(cpus); -	cpus = perf_cpu_map__default_new(); +	cpus = perf_cpu_map__new_online_cpus();  	if (!cpus)  		return -1; diff --git a/tools/lib/perf/tests/test-evlist.c b/tools/lib/perf/tests/test-evlist.c index ed616fc19b4f..10f70cb41ff1 100644 --- a/tools/lib/perf/tests/test-evlist.c +++ b/tools/lib/perf/tests/test-evlist.c @@ -46,7 +46,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);  	evlist = perf_evlist__new(); @@ -261,7 +261,7 @@ static int test_mmap_thread(void)  	threads = perf_thread_map__new_dummy();  	__T("failed to create threads", threads); -	cpus = perf_cpu_map__dummy_new(); +	cpus = perf_cpu_map__new_any_cpu();  	__T("failed to create cpus", cpus);  	perf_thread_map__set_pid(threads, 0, pid); @@ -350,7 +350,7 @@ static int test_mmap_cpus(void)  	attr.config = id; -	cpus = perf_cpu_map__new(NULL); +	cpus = perf_cpu_map__new_online_cpus();  	__T("failed to create cpus", cpus);  	evlist = perf_evlist__new(); diff --git a/tools/lib/perf/tests/test-evsel.c b/tools/lib/perf/tests/test-evsel.c index a11fc51bfb68..545ec3150546 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);  |