thread_map.h 378 B

12345678910111213141516
  1. #ifndef __PERF_THREAD_MAP_H
  2. #define __PERF_THREAD_MAP_H
  3. #include <sys/types.h>
  4. struct thread_map {
  5. int nr;
  6. int map[];
  7. };
  8. struct thread_map *thread_map__new_by_pid(pid_t pid);
  9. struct thread_map *thread_map__new_by_tid(pid_t tid);
  10. struct thread_map *thread_map__new(pid_t pid, pid_t tid);
  11. void thread_map__delete(struct thread_map *threads);
  12. #endif /* __PERF_THREAD_MAP_H */