1 // SPDX-License-Identifier: GPL-2.0
4 #include <perf/cpumap.h>
5 #include <internal/tests.h>
7 static int libperf_print(enum libperf_print_level level,
8 const char *fmt, va_list ap)
10 return vfprintf(stderr, fmt, ap);
13 int main(int argc, char **argv)
15 struct perf_cpu_map *cpus;
19 libperf_init(libperf_print);
21 cpus = perf_cpu_map__dummy_new();
25 perf_cpu_map__get(cpus);
26 perf_cpu_map__put(cpus);
27 perf_cpu_map__put(cpus);