threadmap.h 485 B

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