2 #ifndef __PERF_THREAD_MAP_H 3 #define __PERF_THREAD_MAP_H 7 #include <linux/refcount.h> 35 const char *tid, uid_t uid,
bool all_threads);
43 return threads ? threads->
nr : 1;
48 return map->
map[thread].
pid;
size_t thread_map__fprintf(struct thread_map *threads, FILE *fp)
static void thread_map__set_pid(struct thread_map *map, int thread, pid_t pid)
void thread_map__put(struct thread_map *map)
struct thread_map * thread_map__get(struct thread_map *map)
struct thread_map * thread_map__new_dummy(void)
void thread_map__read_comms(struct thread_map *threads)
struct thread_map * thread_map__new_by_pid(pid_t pid)
static char * thread_map__comm(struct thread_map *map, int thread)
struct thread_map_data map[]
struct thread_map * thread_map__new_by_tid_str(const char *tid_str)
struct thread_map * thread_map__new_by_uid(uid_t uid)
int thread_map__remove(struct thread_map *threads, int idx)
struct thread_map * thread_map__new(pid_t pid, pid_t tid, uid_t uid)
static int thread_map__nr(struct thread_map *threads)
struct thread_map * thread_map__new_by_tid(pid_t tid)
struct thread_map * thread_map__new_str(const char *pid, const char *tid, uid_t uid, bool all_threads)
struct thread_map * thread_map__new_event(struct thread_map_event *event)
bool thread_map__has(struct thread_map *threads, pid_t pid)
static pid_t thread_map__pid(struct thread_map *map, int thread)
struct thread_map * thread_map__new_all_cpus(void)