Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b55a87ad authored by Masami Hiramatsu's avatar Masami Hiramatsu Committed by Arnaldo Carvalho de Melo
Browse files

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: default avatarMasami Hiramatsu <mhiramat@redhat.com>
Signed-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent a34a9854
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -151,10 +151,10 @@ static int try_to_find_kprobe_trace_events(struct perf_probe_event *pev,


	/* Error path */
	/* Error path */
	if (need_dwarf) {
	if (need_dwarf) {
		if (ntevs == -ENOENT)
		if (ntevs == -EBADF)
			pr_warning("No dwarf info found in the vmlinux - "
			pr_warning("No dwarf info found in the vmlinux - "
				"please rebuild with CONFIG_DEBUG_INFO=y.\n");
				"please rebuild with CONFIG_DEBUG_INFO=y.\n");
		die("Could not analyze debuginfo.");
		die("Failed to analyze debuginfo.");
	}
	}
	pr_debug("An error occurred in debuginfo analysis."
	pr_debug("An error occurred in debuginfo analysis."
		 " Try to use symbols.\n");
		 " Try to use symbols.\n");
+320 −197

File changed.

Preview size limit exceeded, changes collapsed.