diff options
Diffstat (limited to 'tools/perf/util/thread.h')
-rw-r--r-- | tools/perf/util/thread.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tools/perf/util/thread.h b/tools/perf/util/thread.h index 5b856bf942e1..9b29f085aede 100644 --- a/tools/perf/util/thread.h +++ b/tools/perf/util/thread.h | |||
@@ -44,12 +44,6 @@ void thread__insert_map(struct thread *thread, struct map *map); | |||
44 | int thread__fork(struct thread *thread, struct thread *parent, u64 timestamp); | 44 | int thread__fork(struct thread *thread, struct thread *parent, u64 timestamp); |
45 | size_t thread__fprintf(struct thread *thread, FILE *fp); | 45 | size_t thread__fprintf(struct thread *thread, FILE *fp); |
46 | 46 | ||
47 | static inline struct map *thread__find_map(struct thread *thread, | ||
48 | enum map_type type, u64 addr) | ||
49 | { | ||
50 | return thread ? map_groups__find(&thread->mg, type, addr) : NULL; | ||
51 | } | ||
52 | |||
53 | void thread__find_addr_map(struct thread *thread, struct machine *machine, | 47 | void thread__find_addr_map(struct thread *thread, struct machine *machine, |
54 | u8 cpumode, enum map_type type, u64 addr, | 48 | u8 cpumode, enum map_type type, u64 addr, |
55 | struct addr_location *al); | 49 | struct addr_location *al); |
@@ -58,6 +52,11 @@ void thread__find_addr_location(struct thread *thread, struct machine *machine, | |||
58 | u8 cpumode, enum map_type type, u64 addr, | 52 | u8 cpumode, enum map_type type, u64 addr, |
59 | struct addr_location *al); | 53 | struct addr_location *al); |
60 | 54 | ||
55 | void thread__find_cpumode_addr_location(struct thread *thread, | ||
56 | struct machine *machine, | ||
57 | enum map_type type, u64 addr, | ||
58 | struct addr_location *al); | ||
59 | |||
61 | static inline void *thread__priv(struct thread *thread) | 60 | static inline void *thread__priv(struct thread *thread) |
62 | { | 61 | { |
63 | return thread->priv; | 62 | return thread->priv; |