2017-11-01 15:07:57 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2011-01-18 15:15:24 -02:00
|
|
|
#ifndef __PERF_THREAD_MAP_H
|
|
|
|
|
#define __PERF_THREAD_MAP_H
|
|
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
2012-01-19 14:07:23 -02:00
|
|
|
#include <stdio.h>
|
2019-07-21 13:24:19 +02:00
|
|
|
#include <perf/threadmap.h>
|
2011-01-18 15:15:24 -02:00
|
|
|
|
2019-08-28 15:57:16 +02:00
|
|
|
struct perf_record_thread_map;
|
2015-10-25 15:51:21 +01:00
|
|
|
|
2019-07-21 13:23:50 +02:00
|
|
|
struct perf_thread_map *thread_map__new_dummy(void);
|
|
|
|
|
struct perf_thread_map *thread_map__new_by_pid(pid_t pid);
|
|
|
|
|
struct perf_thread_map *thread_map__new_by_tid(pid_t tid);
|
2025-06-04 10:45:44 -07:00
|
|
|
struct perf_thread_map *thread_map__new(pid_t pid, pid_t tid);
|
2019-08-28 15:57:16 +02:00
|
|
|
struct perf_thread_map *thread_map__new_event(struct perf_record_thread_map *event);
|
2012-02-08 09:32:52 -07:00
|
|
|
|
2019-07-21 13:23:50 +02:00
|
|
|
struct perf_thread_map *thread_map__new_str(const char *pid,
|
2025-06-04 10:45:44 -07:00
|
|
|
const char *tid, bool all_threads);
|
2012-02-08 09:32:52 -07:00
|
|
|
|
2019-07-21 13:23:50 +02:00
|
|
|
struct perf_thread_map *thread_map__new_by_tid_str(const char *tid_str);
|
2016-04-12 15:29:28 +02:00
|
|
|
|
2019-07-21 13:23:50 +02:00
|
|
|
size_t thread_map__fprintf(struct perf_thread_map *threads, FILE *fp);
|
2012-01-19 14:07:23 -02:00
|
|
|
|
2019-07-21 13:23:50 +02:00
|
|
|
void thread_map__read_comms(struct perf_thread_map *threads);
|
|
|
|
|
bool thread_map__has(struct perf_thread_map *threads, pid_t pid);
|
|
|
|
|
int thread_map__remove(struct perf_thread_map *threads, int idx);
|
2011-01-18 15:15:24 -02:00
|
|
|
#endif /* __PERF_THREAD_MAP_H */
|