diff options
-rw-r--r-- | tools/perf/util/probe-event.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c index 4fb480367c3e..5d3baec216e3 100644 --- a/tools/perf/util/probe-event.c +++ b/tools/perf/util/probe-event.c | |||
@@ -180,15 +180,16 @@ static int try_to_find_kprobe_trace_events(struct perf_probe_event *pev, | |||
180 | return -ENOENT; | 180 | return -ENOENT; |
181 | } | 181 | } |
182 | /* Error path : ntevs < 0 */ | 182 | /* Error path : ntevs < 0 */ |
183 | if (need_dwarf) { | 183 | pr_debug("An error occurred in debuginfo analysis (%d).\n", ntevs); |
184 | if (ntevs == -EBADF) | 184 | if (ntevs == -EBADF) { |
185 | pr_warning("No dwarf info found in the vmlinux - " | 185 | pr_warning("Warning: No dwarf info found in the vmlinux - " |
186 | "please rebuild with CONFIG_DEBUG_INFO=y.\n"); | 186 | "please rebuild kernel with CONFIG_DEBUG_INFO=y.\n"); |
187 | return ntevs; | 187 | if (!need_dwarf) { |
188 | pr_debug("Trying to use symbols.\nn"); | ||
189 | return 0; | ||
190 | } | ||
188 | } | 191 | } |
189 | pr_debug("An error occurred in debuginfo analysis." | 192 | return ntevs; |
190 | " Try to use symbols.\n"); | ||
191 | return 0; | ||
192 | } | 193 | } |
193 | 194 | ||
194 | #define LINEBUF_SIZE 256 | 195 | #define LINEBUF_SIZE 256 |