aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-report.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2009-10-05 13:26:16 -0400
committerIngo Molnar <mingo@elte.hu>2009-10-05 14:35:24 -0400
commitc3b32fcbc7f4fd9a9b84718b991b175b0fd53f8c (patch)
treea7e0198b04673b711aa67fae72788007af056039 /tools/perf/builtin-report.c
parenta2a99e8e12798706ec1026e5d8fc36f7c86122ce (diff)
perf report: Use kernel_maps__find_symbol as fallback to find vdsos, etc
In resolve_symbol, as we're moving to breaking the kernel symbols list per address ranges, i.e. kernel linking sections, so that we don't have a big kernel_map that in its range covers what is in the modules. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Mike Galbraith <efault@gmx.de> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/builtin-report.c')
-rw-r--r--tools/perf/builtin-report.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c
index fe4aadc9630f..12f8c868fcd7 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -384,11 +384,8 @@ got_map:
384 * the "[vdso]" dso, but for now lets use the old 384 * the "[vdso]" dso, but for now lets use the old
385 * trick of looking in the whole kernel symbol list. 385 * trick of looking in the whole kernel symbol list.
386 */ 386 */
387 if ((long long)ip < 0) { 387 if ((long long)ip < 0)
388 map = kernel_map; 388 return kernel_maps__find_symbol(ip, mapp);
389 if (mapp)
390 *mapp = map;
391 }
392 } 389 }
393 dump_printf(" ...... dso: %s\n", 390 dump_printf(" ...... dso: %s\n",
394 map ? map->dso->long_name : "<not found>"); 391 map ? map->dso->long_name : "<not found>");