diff options
Diffstat (limited to 'tools/perf/lib/include/internal/threadmap.h')
-rw-r--r-- | tools/perf/lib/include/internal/threadmap.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/perf/lib/include/internal/threadmap.h b/tools/perf/lib/include/internal/threadmap.h new file mode 100644 index 000000000000..c8088005a9ab --- /dev/null +++ b/tools/perf/lib/include/internal/threadmap.h | |||
@@ -0,0 +1,21 @@ | |||
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 | #endif /* __LIBPERF_INTERNAL_THREADMAP_H */ | ||