perf machine: Introduce machine__find_kernel_symbol_by_name()
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 8acd3da03c3f6e4e31472c5c73402b95a5d0f6cb Gitweb: http://git.kernel.org/tip/8acd3da03c3f6e4e31472c5c73402b95a5d0f6cb Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Mon, 25 Jan 2016 18:01:57 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Tue, 26 Jan 2016 11:52:51 -0300
perf machine: Introduce machine__find_kernel_symbol_by_name()
To be used in the 'vmlinux matches kallsyms' 'perf test' entry.
Cc Adrian Hunter <[email protected]>
Cc David Ahern <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/util/machine.h | 10 ++++++++++ 1 file changed, 10 insertions(+)
tools/perf/util/machine.h +10 -0
@@ -180,6 +180,16 @@ struct symbol *machine__find_kernel_symbol(struct machine *machine, }static inline +struct symbol *machine__find_kernel_symbol_by_name (struct machine *machine, +enum map_type type,const char *name, +struct map **mapp, +symbol_filter_t filter) +{ +return map_groups__find_symbol_by_name (&machine->kmaps, type, name, + mapp, filter); +} + +static inline struct symbol *machine__find_kernel_function (struct machine *machine,u64 addr,struct map **mapp,symbol_filter_t filter)