aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/map.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/map.h')
-rw-r--r--tools/perf/util/map.h23
1 files changed, 19 insertions, 4 deletions
diff --git a/tools/perf/util/map.h b/tools/perf/util/map.h
index 4e7a11da8ffe..2031278cc06a 100644
--- a/tools/perf/util/map.h
+++ b/tools/perf/util/map.h
@@ -119,13 +119,28 @@ static inline struct map *map_groups__find(struct map_groups *self,
119 119
120struct symbol *map_groups__find_symbol(struct map_groups *self, 120struct symbol *map_groups__find_symbol(struct map_groups *self,
121 enum map_type type, u64 addr, 121 enum map_type type, u64 addr,
122 struct map **mapp,
122 symbol_filter_t filter); 123 symbol_filter_t filter);
123 124
124static inline struct symbol *map_groups__find_function(struct map_groups *self, 125struct symbol *map_groups__find_symbol_by_name(struct map_groups *self,
125 u64 addr, 126 enum map_type type,
126 symbol_filter_t filter) 127 const char *name,
128 struct map **mapp,
129 symbol_filter_t filter);
130
131static inline
132struct symbol *map_groups__find_function(struct map_groups *self, u64 addr,
133 struct map **mapp, symbol_filter_t filter)
134{
135 return map_groups__find_symbol(self, MAP__FUNCTION, addr, mapp, filter);
136}
137
138static inline
139struct symbol *map_groups__find_function_by_name(struct map_groups *self,
140 const char *name, struct map **mapp,
141 symbol_filter_t filter)
127{ 142{
128 return map_groups__find_symbol(self, MAP__FUNCTION, addr, filter); 143 return map_groups__find_symbol_by_name(self, MAP__FUNCTION, name, mapp, filter);
129} 144}
130 145
131int map_groups__fixup_overlappings(struct map_groups *self, struct map *map, 146int map_groups__fixup_overlappings(struct map_groups *self, struct map *map,