Merge tag 'ntb-5.11' of git://github.com/jonmason/ntb
[linux/fpc-iii.git] / tools / lib / perf / tests / test-cpumap.c
blobc8d45091e7c26a3bede00f38dc72b03f83d435b4
1 // SPDX-License-Identifier: GPL-2.0
2 #include <stdarg.h>
3 #include <stdio.h>
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;
17 __T_START;
19 libperf_init(libperf_print);
21 cpus = perf_cpu_map__dummy_new();
22 if (!cpus)
23 return -1;
25 perf_cpu_map__get(cpus);
26 perf_cpu_map__put(cpus);
27 perf_cpu_map__put(cpus);
29 __T_END;
30 return 0;