perf tests vmlinux-kallsyms: Use machine__find_kernel_function(_by_name)
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: 3cd666b5017cfc9cc258fe8a2d410397f42856bf Gitweb: https://git.kernel.org/tip/3cd666b5017cfc9cc258fe8a2d410397f42856bf Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Wed, 25 Apr 2018 12:23:17 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Thu, 26 Apr 2018 13:47:11 -0300
perf tests vmlinux-kallsyms: Use machine__find_kernel_function(_by_name)
We had this for ages, IIRC for 'perf probe' use initially, so use them instead of the variants that pass the map_type, that is going away.
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/tests/vmlinux-kallsyms.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
tools/perf/tests/vmlinux-kallsyms.c +2 -3
@@ -119,8 +119,7 @@ int test__vmlinux_matches_kallsyms(struct test *test __maybe_unused, int subtest mem_start = vmlinux_map->unmap_ip (vmlinux_map, sym->start); mem_end = vmlinux_map->unmap_ip (vmlinux_map, sym->end); - first_pair =machine__find_kernel_symbol (&kallsyms, type, - mem_start,NULL ); + first_pair =machine__find_kernel_function (&kallsyms, mem_start,NULL ); pair = first_pair;if (pair &&UM (pair->start) == mem_start) {
@@ -149,7 +148,7 @@ next_pair:*/ continue ; }else { - pair =machine__find_kernel_symbol_by_name (&kallsyms, type, sym->name,NULL ); + pair =machine__find_kernel_function_by_name (&kallsyms, sym->name,NULL );if (pair) {if (UM (pair->start) == mem_start) goto next_pair;