Skip to content

Commit 8acd3da

Browse files
committed
perf machine: Introduce machine__find_kernel_symbol_by_name()
To be used in the 'vmlinux matches kallsyms' 'perf test' entry. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-m56g1853lz2c6nhnqxibq4jd@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 4056132 commit 8acd3da

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎tools/perf/util/machine.h‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,16 @@ struct symbol *machine__find_kernel_symbol(struct machine *machine,
179179
mapp, filter);
180180
}
181181

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+
182192
static inline
183193
struct symbol *machine__find_kernel_function(struct machine *machine, u64 addr,
184194
struct map **mapp,

0 commit comments

Comments
 (0)