| 1 |
|
| 2 | #ifndef __PERF_THREAD_MAP_H
|
| 3 | #define __PERF_THREAD_MAP_H
|
| 4 |
|
| 5 | #include <sys/types.h>
|
| 6 | #include <stdio.h>
|
| 7 | #include <perf/threadmap.h>
|
| 8 |
|
| 9 | struct perf_record_thread_map;
|
| 10 |
|
| 11 | struct perf_thread_map *thread_map__new_dummy(void);
|
| 12 | struct perf_thread_map *thread_map__new_by_pid(pid_t pid);
|
| 13 | struct perf_thread_map *thread_map__new_by_tid(pid_t tid);
|
| 14 | struct perf_thread_map *thread_map__new(pid_t pid, pid_t tid);
|
| 15 | struct perf_thread_map *thread_map__new_event(struct perf_record_thread_map *event);
|
| 16 |
|
| 17 | struct perf_thread_map *thread_map__new_str(const char *pid,
|
| 18 | const char *tid, bool all_threads);
|
| 19 |
|
| 20 | struct perf_thread_map *thread_map__new_by_tid_str(const char *tid_str);
|
| 21 |
|
| 22 | size_t thread_map__fprintf(struct perf_thread_map *threads, FILE *fp);
|
| 23 |
|
| 24 | void thread_map__read_comms(struct perf_thread_map *threads);
|
| 25 | bool thread_map__has(struct perf_thread_map *threads, pid_t pid);
|
| 26 | int thread_map__remove(struct perf_thread_map *threads, int idx);
|
| 27 | #endif
|