1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __LIBPERF_INTERNAL_THREADMAP_H
3 #define __LIBPERF_INTERNAL_THREADMAP_H
4 
5 #include <linux/refcount.h>
6 #include <sys/types.h>
7 #include <unistd.h>
8 
9 struct thread_map_data {
10 	pid_t	 pid;
11 	char	*comm;
12 };
13 
14 struct perf_thread_map {
15 	refcount_t	refcnt;
16 	int		nr;
17 	int		err_thread;
18 	struct thread_map_data map[];
19 };
20 
21 struct perf_thread_map *perf_thread_map__realloc(struct perf_thread_map *map, int nr);
22 
23 #endif /* __LIBPERF_INTERNAL_THREADMAP_H */
24