diff options
author | Masami Hiramatsu <mhiramat@redhat.com> | 2010-04-12 13:17:35 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-04-14 16:28:30 -0400 |
commit | b55a87ade3839c33ab94768a0b5955734073f987 (patch) | |
tree | 7e4d2f9e49b4c4a99257bdf1ee61164d12e3ba7e /tools/perf/util/probe-event.c | |
parent | a34a985499895a46a4dacff727d0fbc63cdc75e8 (diff) |
perf probe: Remove die() from probe-finder code
Remove die() and DIE_IF() code from util/probe-finder.c since
these 'sudden death' in utility functions make reusing it from
other code (especially tui/gui) difficult.
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <20100412171735.3790.88853.stgit@localhost6.localdomain6>
Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/probe-event.c')
-rw-r--r-- | tools/perf/util/probe-event.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/probe-event.c b/tools/perf/util/probe-event.c index bef280527e60..7893b3207dbe 100644 --- a/tools/perf/util/probe-event.c +++ b/tools/perf/util/probe-event.c | |||
@@ -151,10 +151,10 @@ static int try_to_find_kprobe_trace_events(struct perf_probe_event *pev, | |||
151 | 151 | ||
152 | /* Error path */ | 152 | /* Error path */ |
153 | if (need_dwarf) { | 153 | if (need_dwarf) { |
154 | if (ntevs == -ENOENT) | 154 | if (ntevs == -EBADF) |
155 | pr_warning("No dwarf info found in the vmlinux - " | 155 | pr_warning("No dwarf info found in the vmlinux - " |
156 | "please rebuild with CONFIG_DEBUG_INFO=y.\n"); | 156 | "please rebuild with CONFIG_DEBUG_INFO=y.\n"); |
157 | die("Could not analyze debuginfo."); | 157 | die("Failed to analyze debuginfo."); |
158 | } | 158 | } |
159 | pr_debug("An error occurred in debuginfo analysis." | 159 | pr_debug("An error occurred in debuginfo analysis." |
160 | " Try to use symbols.\n"); | 160 | " Try to use symbols.\n"); |