mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-30 13:38:40 +00:00
61d5bf5b01
Thread map is actually type pid_t and not int. Signed-off-by: Robert Richter <robert.richter@amd.com> Cc: Ingo Molnar <mingo@kernel.org> Link: http://lkml.kernel.org/r/1333643188-26895-3-git-send-email-robert.richter@amd.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
25 lines
621 B
C
25 lines
621 B
C
#ifndef __PERF_THREAD_MAP_H
|
|
#define __PERF_THREAD_MAP_H
|
|
|
|
#include <sys/types.h>
|
|
#include <stdio.h>
|
|
|
|
struct thread_map {
|
|
int nr;
|
|
pid_t 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_by_uid(uid_t uid);
|
|
struct thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid);
|
|
|
|
struct thread_map *thread_map__new_str(const char *pid,
|
|
const char *tid, uid_t uid);
|
|
|
|
void thread_map__delete(struct thread_map *threads);
|
|
|
|
size_t thread_map__fprintf(struct thread_map *threads, FILE *fp);
|
|
|
|
#endif /* __PERF_THREAD_MAP_H */
|