thread_map.h 465 字节
Newer Older
1 2 3 4
#ifndef __PERF_THREAD_MAP_H
#define __PERF_THREAD_MAP_H

#include <sys/types.h>
5
#include <stdio.h>
6 7 8 9 10 11 12 13 14 15

struct thread_map {
	int nr;
	int map[];
};

struct thread_map *thread_map__new_by_pid(pid_t pid);
struct thread_map *thread_map__new_by_tid(pid_t tid);
struct thread_map *thread_map__new(pid_t pid, pid_t tid);
void thread_map__delete(struct thread_map *threads);
16 17 18

size_t thread_map__fprintf(struct thread_map *threads, FILE *fp);

19
#endif	/* __PERF_THREAD_MAP_H */