diff options
Diffstat (limited to 'tools/perf/util/map.c')
| -rw-r--r-- | tools/perf/util/map.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/perf/util/map.c b/tools/perf/util/map.c index f553e302bf9c..91e2afb010f8 100644 --- a/tools/perf/util/map.c +++ b/tools/perf/util/map.c | |||
| @@ -574,7 +574,7 @@ struct symbol *map_groups__find_symbol(struct map_groups *mg, | |||
| 574 | enum map_type type, u64 addr, | 574 | enum map_type type, u64 addr, |
| 575 | struct map **mapp) | 575 | struct map **mapp) |
| 576 | { | 576 | { |
| 577 | struct map *map = map_groups__find(mg, type, addr); | 577 | struct map *map = __map_groups__find(mg, type, addr); |
| 578 | 578 | ||
| 579 | /* Ensure map is loaded before using map->map_ip */ | 579 | /* Ensure map is loaded before using map->map_ip */ |
| 580 | if (map != NULL && map__load(map) >= 0) { | 580 | if (map != NULL && map__load(map) >= 0) { |
| @@ -627,8 +627,7 @@ int map_groups__find_ams(struct addr_map_symbol *ams) | |||
| 627 | if (ams->addr < ams->map->start || ams->addr >= ams->map->end) { | 627 | if (ams->addr < ams->map->start || ams->addr >= ams->map->end) { |
| 628 | if (ams->map->groups == NULL) | 628 | if (ams->map->groups == NULL) |
| 629 | return -1; | 629 | return -1; |
| 630 | ams->map = map_groups__find(ams->map->groups, ams->map->type, | 630 | ams->map = __map_groups__find(ams->map->groups, ams->map->type, ams->addr); |
| 631 | ams->addr); | ||
| 632 | if (ams->map == NULL) | 631 | if (ams->map == NULL) |
| 633 | return -1; | 632 | return -1; |
| 634 | } | 633 | } |
