1 // SPDX-License-Identifier: GPL-2.0
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
;
19 libperf_init(libperf_print
);
21 threads
= perf_thread_map__new_dummy();
25 perf_thread_map__get(threads
);
26 perf_thread_map__put(threads
);
27 perf_thread_map__put(threads
);