diff options
Diffstat (limited to 'tools/perf/util/thread.h')
-rw-r--r-- | tools/perf/util/thread.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/perf/util/thread.h b/tools/perf/util/thread.h index 1751802a09ba..c206f72c8881 100644 --- a/tools/perf/util/thread.h +++ b/tools/perf/util/thread.h | |||
@@ -8,7 +8,6 @@ | |||
8 | struct map_groups { | 8 | struct map_groups { |
9 | struct rb_root maps[MAP__NR_TYPES]; | 9 | struct rb_root maps[MAP__NR_TYPES]; |
10 | struct list_head removed_maps[MAP__NR_TYPES]; | 10 | struct list_head removed_maps[MAP__NR_TYPES]; |
11 | bool use_modules; | ||
12 | }; | 11 | }; |
13 | 12 | ||
14 | struct thread { | 13 | struct thread { |
@@ -23,12 +22,11 @@ struct thread { | |||
23 | void map_groups__init(struct map_groups *self); | 22 | void map_groups__init(struct map_groups *self); |
24 | int thread__set_comm(struct thread *self, const char *comm); | 23 | int thread__set_comm(struct thread *self, const char *comm); |
25 | int thread__comm_len(struct thread *self); | 24 | int thread__comm_len(struct thread *self); |
26 | struct thread *threads__findnew(pid_t pid); | 25 | struct thread *perf_session__findnew(struct perf_session *self, pid_t pid); |
27 | struct thread *register_idle_thread(void); | ||
28 | void thread__insert_map(struct thread *self, struct map *map); | 26 | void thread__insert_map(struct thread *self, struct map *map); |
29 | int thread__fork(struct thread *self, struct thread *parent); | 27 | int thread__fork(struct thread *self, struct thread *parent); |
30 | size_t map_groups__fprintf_maps(struct map_groups *self, FILE *fp); | 28 | size_t map_groups__fprintf_maps(struct map_groups *self, FILE *fp); |
31 | size_t threads__fprintf(FILE *fp); | 29 | size_t perf_session__fprintf(struct perf_session *self, FILE *fp); |
32 | 30 | ||
33 | void maps__insert(struct rb_root *maps, struct map *map); | 31 | void maps__insert(struct rb_root *maps, struct map *map); |
34 | struct map *maps__find(struct rb_root *maps, u64 addr); | 32 | struct map *maps__find(struct rb_root *maps, u64 addr); |
@@ -50,19 +48,21 @@ static inline struct map *thread__find_map(struct thread *self, | |||
50 | return self ? map_groups__find(&self->mg, type, addr) : NULL; | 48 | return self ? map_groups__find(&self->mg, type, addr) : NULL; |
51 | } | 49 | } |
52 | 50 | ||
53 | void thread__find_addr_location(struct thread *self, u8 cpumode, | 51 | void thread__find_addr_location(struct thread *self, |
52 | struct perf_session *session, u8 cpumode, | ||
54 | enum map_type type, u64 addr, | 53 | enum map_type type, u64 addr, |
55 | struct addr_location *al, | 54 | struct addr_location *al, |
56 | symbol_filter_t filter); | 55 | symbol_filter_t filter); |
57 | struct symbol *map_groups__find_symbol(struct map_groups *self, | 56 | struct symbol *map_groups__find_symbol(struct map_groups *self, |
57 | struct perf_session *session, | ||
58 | enum map_type type, u64 addr, | 58 | enum map_type type, u64 addr, |
59 | symbol_filter_t filter); | 59 | symbol_filter_t filter); |
60 | 60 | ||
61 | static inline struct symbol * | 61 | static inline struct symbol * |
62 | map_groups__find_function(struct map_groups *self, u64 addr, | 62 | map_groups__find_function(struct map_groups *self, struct perf_session *session, |
63 | symbol_filter_t filter) | 63 | u64 addr, symbol_filter_t filter) |
64 | { | 64 | { |
65 | return map_groups__find_symbol(self, MAP__FUNCTION, addr, filter); | 65 | return map_groups__find_symbol(self, session, MAP__FUNCTION, addr, filter); |
66 | } | 66 | } |
67 | 67 | ||
68 | struct map *map_groups__find_by_name(struct map_groups *self, | 68 | struct map *map_groups__find_by_name(struct map_groups *self, |