tools lib traceevent: Get rid of die() from pevent_register_print_function
authorNamhyung Kim <namhyung.kim@lge.com>
Fri, 7 Sep 2012 02:49:47 +0000 (11:49 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 7 Sep 2012 15:15:31 +0000 (12:15 -0300)
commit67ed939c9eb029c28057eb75de456a9d0e899fd4
tree14cbbd135c6284ad85341887d251278928fe3698
parent0ca8da00ad170c12c12350c3a2500591a7bec535
tools lib traceevent: Get rid of die() from pevent_register_print_function

If memory allocation for handler fails or argument type is not match,
return gracefully instead of calling die().  Also add an new error code
for the later case.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1346986187-5170-3-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/traceevent/event-parse.c
tools/lib/traceevent/event-parse.h