perf threads: Move thread_map to separate file
To untangle it from struct thread handling, that is tied to symbols, etc. Right now in the python bindings I'm working on I need just a subset of the util/ files, untangling it allows me to do that. Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Cc: Tom Zanussi <tzanussi@gmail.com> LKML-Reference: <new-submission> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
15
tools/perf/util/thread_map.h
Normal file
15
tools/perf/util/thread_map.h
Normal file
@@ -0,0 +1,15 @@
|
||||
#ifndef __PERF_THREAD_MAP_H
|
||||
#define __PERF_THREAD_MAP_H
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
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);
|
||||
#endif /* __PERF_THREAD_MAP_H */
|
Reference in New Issue
Block a user