perf: Use die() for error cases in perf-probe
authorMasami Hiramatsu <mhiramat@redhat.com>
Sat, 17 Oct 2009 00:08:01 +0000 (20:08 -0400)
committerIngo Molnar <mingo@elte.hu>
Sat, 17 Oct 2009 07:54:00 +0000 (09:54 +0200)
commit074fc0e4b3f5d24306c2995f2f3b0bd4759e8aeb
tree485c1ac28a03ed0558eb443e1212eaf6ceee2c63
parent4c20194c2de151bca14224ae384b47abf7636a95
perf: Use die() for error cases in perf-probe

Use die() for exiting perf-probe with errors. This replaces
perror_exit(), msg_exit() and fprintf()+exit() with die(), and
uses die() in semantic_error().

This also renames 'die' local variables to 'dw_die' for avoiding
name confliction.

Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <20091017000801.16556.46866.stgit@dhcp-100-2-132.bos.redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
tools/perf/builtin-probe.c
tools/perf/util/probe-finder.c