diff options
Diffstat (limited to 'tools/perf/util/machine.h')
-rw-r--r-- | tools/perf/util/machine.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/perf/util/machine.h b/tools/perf/util/machine.h index 2c2b443df5ba..1a3e45baf97f 100644 --- a/tools/perf/util/machine.h +++ b/tools/perf/util/machine.h | |||
@@ -180,6 +180,16 @@ struct symbol *machine__find_kernel_symbol(struct machine *machine, | |||
180 | } | 180 | } |
181 | 181 | ||
182 | static inline | 182 | static inline |
183 | struct symbol *machine__find_kernel_symbol_by_name(struct machine *machine, | ||
184 | enum map_type type, const char *name, | ||
185 | struct map **mapp, | ||
186 | symbol_filter_t filter) | ||
187 | { | ||
188 | return map_groups__find_symbol_by_name(&machine->kmaps, type, name, | ||
189 | mapp, filter); | ||
190 | } | ||
191 | |||
192 | static inline | ||
183 | struct symbol *machine__find_kernel_function(struct machine *machine, u64 addr, | 193 | struct symbol *machine__find_kernel_function(struct machine *machine, u64 addr, |
184 | struct map **mapp, | 194 | struct map **mapp, |
185 | symbol_filter_t filter) | 195 | symbol_filter_t filter) |