WIP FPC-III support
[linux/fpc-iii.git] / tools / lib / perf / tests / test-threadmap.c
blob7dc4d6fbeddee5bdc4b0f0316f8b6a1814fa2c6b
1 // SPDX-License-Identifier: GPL-2.0
2 #include <stdarg.h>
3 #include <stdio.h>
4 #include <perf/threadmap.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_thread_map *threads;
17 __T_START;
19 libperf_init(libperf_print);
21 threads = perf_thread_map__new_dummy();
22 if (!threads)
23 return -1;
25 perf_thread_map__get(threads);
26 perf_thread_map__put(threads);
27 perf_thread_map__put(threads);
29 __T_END;
30 return 0;