aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/util/probe-event.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c
index fe4941a94a25..f07374bc9c5a 100644
--- a/tools/perf/util/probe-event.c
+++ b/tools/perf/util/probe-event.c
@@ -705,9 +705,10 @@ static int try_to_find_probe_trace_events(struct perf_probe_event *pev,
705 } 705 }
706 /* Error path : ntevs < 0 */ 706 /* Error path : ntevs < 0 */
707 pr_debug("An error occurred in debuginfo analysis (%d).\n", ntevs); 707 pr_debug("An error occurred in debuginfo analysis (%d).\n", ntevs);
708 if (ntevs == -EBADF) { 708 if (ntevs < 0) {
709 pr_warning("Warning: No dwarf info found in the vmlinux - " 709 if (ntevs == -EBADF)
710 "please rebuild kernel with CONFIG_DEBUG_INFO=y.\n"); 710 pr_warning("Warning: No dwarf info found in the vmlinux - "
711 "please rebuild kernel with CONFIG_DEBUG_INFO=y.\n");
711 if (!need_dwarf) { 712 if (!need_dwarf) {
712 pr_debug("Trying to use symbols.\n"); 713 pr_debug("Trying to use symbols.\n");
713 return 0; 714 return 0;