|
|
@@ -553,13 +553,9 @@ struct symbol *map_groups__find_symbol(struct map_groups *mg,
|
|
|
return NULL;
|
|
|
}
|
|
|
|
|
|
-struct symbol *map_groups__find_symbol_by_name(struct map_groups *mg,
|
|
|
- enum map_type type,
|
|
|
- const char *name,
|
|
|
- struct map **mapp,
|
|
|
- symbol_filter_t filter)
|
|
|
+struct symbol *maps__find_symbol_by_name(struct maps *maps, const char *name,
|
|
|
+ struct map **mapp, symbol_filter_t filter)
|
|
|
{
|
|
|
- struct maps *maps = &mg->maps[type];
|
|
|
struct symbol *sym;
|
|
|
struct rb_node *nd;
|
|
|
|
|
|
@@ -583,6 +579,17 @@ struct symbol *map_groups__find_symbol_by_name(struct map_groups *mg,
|
|
|
return sym;
|
|
|
}
|
|
|
|
|
|
+struct symbol *map_groups__find_symbol_by_name(struct map_groups *mg,
|
|
|
+ enum map_type type,
|
|
|
+ const char *name,
|
|
|
+ struct map **mapp,
|
|
|
+ symbol_filter_t filter)
|
|
|
+{
|
|
|
+ struct symbol *sym = maps__find_symbol_by_name(&mg->maps[type], name, mapp, filter);
|
|
|
+
|
|
|
+ return sym;
|
|
|
+}
|
|
|
+
|
|
|
int map_groups__find_ams(struct addr_map_symbol *ams, symbol_filter_t filter)
|
|
|
{
|
|
|
if (ams->addr < ams->map->start || ams->addr >= ams->map->end) {
|