0001
0002 #ifndef __LIBPERF_INTERNAL_THREADMAP_H
0003 #define __LIBPERF_INTERNAL_THREADMAP_H
0004
0005 #include <linux/refcount.h>
0006 #include <sys/types.h>
0007 #include <unistd.h>
0008
0009 struct thread_map_data {
0010 pid_t pid;
0011 char *comm;
0012 };
0013
0014 struct perf_thread_map {
0015 refcount_t refcnt;
0016 int nr;
0017 int err_thread;
0018 struct thread_map_data map[];
0019 };
0020
0021 struct perf_thread_map *perf_thread_map__realloc(struct perf_thread_map *map, int nr);
0022
0023 #endif