diff options
Diffstat (limited to 'tools/perf/util/map.h')
-rw-r--r-- | tools/perf/util/map.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/perf/util/map.h b/tools/perf/util/map.h index 6fabad1fd025..881dba4f8203 100644 --- a/tools/perf/util/map.h +++ b/tools/perf/util/map.h | |||
@@ -134,6 +134,7 @@ struct machine *machines__find_host(struct rb_root *self); | |||
134 | struct machine *machines__find(struct rb_root *self, pid_t pid); | 134 | struct machine *machines__find(struct rb_root *self, pid_t pid); |
135 | struct machine *machines__findnew(struct rb_root *self, pid_t pid); | 135 | struct machine *machines__findnew(struct rb_root *self, pid_t pid); |
136 | char *machine__mmap_name(struct machine *self, char *bf, size_t size); | 136 | char *machine__mmap_name(struct machine *self, char *bf, size_t size); |
137 | int machine__init(struct machine *self, const char *root_dir, pid_t pid); | ||
137 | 138 | ||
138 | /* | 139 | /* |
139 | * Default guest kernel is defined by parameter --guestkallsyms | 140 | * Default guest kernel is defined by parameter --guestkallsyms |
@@ -172,11 +173,11 @@ struct symbol *map_groups__find_symbol_by_name(struct map_groups *self, | |||
172 | struct map **mapp, | 173 | struct map **mapp, |
173 | symbol_filter_t filter); | 174 | symbol_filter_t filter); |
174 | 175 | ||
175 | static inline | 176 | static inline struct symbol *machine__find_function(struct machine *self, |
176 | struct symbol *map_groups__find_function(struct map_groups *self, u64 addr, | 177 | u64 addr, struct map **mapp, |
177 | struct map **mapp, symbol_filter_t filter) | 178 | symbol_filter_t filter) |
178 | { | 179 | { |
179 | return map_groups__find_symbol(self, MAP__FUNCTION, addr, mapp, filter); | 180 | return map_groups__find_symbol(&self->kmaps, MAP__FUNCTION, addr, mapp, filter); |
180 | } | 181 | } |
181 | 182 | ||
182 | static inline | 183 | static inline |
@@ -192,8 +193,7 @@ int map_groups__fixup_overlappings(struct map_groups *self, struct map *map, | |||
192 | 193 | ||
193 | struct map *map_groups__find_by_name(struct map_groups *self, | 194 | struct map *map_groups__find_by_name(struct map_groups *self, |
194 | enum map_type type, const char *name); | 195 | enum map_type type, const char *name); |
195 | struct map *map_groups__new_module(struct map_groups *self, u64 start, | 196 | struct map *machine__new_module(struct machine *self, u64 start, const char *filename); |
196 | const char *filename, struct machine *machine); | ||
197 | 197 | ||
198 | void map_groups__flush(struct map_groups *self); | 198 | void map_groups__flush(struct map_groups *self); |
199 | 199 | ||