Merge tag 'ntb-5.11' of git://github.com/jonmason/ntb
[linux/fpc-iii.git] / tools / lib / perf / include / internal / threadmap.h
blobdf748baf9eda3b5bef923904d9f9ec9c57184a9b
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __LIBPERF_INTERNAL_THREADMAP_H
3 #define __LIBPERF_INTERNAL_THREADMAP_H
5 #include <linux/refcount.h>
6 #include <sys/types.h>
7 #include <unistd.h>
9 struct thread_map_data {
10 pid_t pid;
11 char *comm;
14 struct perf_thread_map {
15 refcount_t refcnt;
16 int nr;
17 int err_thread;
18 struct thread_map_data map[];
21 struct perf_thread_map *perf_thread_map__realloc(struct perf_thread_map *map, int nr);
23 #endif /* __LIBPERF_INTERNAL_THREADMAP_H */