aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-annotate.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/builtin-annotate.c')
-rw-r--r--tools/perf/builtin-annotate.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c
index 6ad7148451c5..45d14660d53d 100644
--- a/tools/perf/builtin-annotate.c
+++ b/tools/perf/builtin-annotate.c
@@ -452,6 +452,16 @@ static void annotate_sym(struct hist_entry *he)
452 if (!filename) 452 if (!filename)
453 return; 453 return;
454 454
455 if (dso->origin == DSO__ORIG_KERNEL) {
456 if (dso->annotate_warned)
457 return;
458 dso->annotate_warned = 1;
459 pr_err("Can't annotate %s: No vmlinux file was found in the "
460 "path:\n", sym->name);
461 vmlinux_path__fprintf(stderr);
462 return;
463 }
464
455 pr_debug("%s: filename=%s, sym=%s, start=%#Lx, end=%#Lx\n", __func__, 465 pr_debug("%s: filename=%s, sym=%s, start=%#Lx, end=%#Lx\n", __func__,
456 filename, sym->name, map->unmap_ip(map, sym->start), 466 filename, sym->name, map->unmap_ip(map, sym->start),
457 map->unmap_ip(map, sym->end)); 467 map->unmap_ip(map, sym->end));