summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 fe4aadc9630..12f8c868fcd 100644
--- a/tools/perf/builtin-report.c
+++ b/tools/perf/builtin-report.c
@@ -384,11 +384,8 @@ got_map:
* the "[vdso]" dso, but for now lets use the old
* trick of looking in the whole kernel symbol list.
*/
- if ((long long)ip < 0) {
- map = kernel_map;
- if (mapp)
- *mapp = map;
- }
+ if ((long long)ip < 0)
+ return kernel_maps__find_symbol(ip, mapp);
}
dump_printf(" ...... dso: %s\n",
map ? map->dso->long_name : "<not found>");