tools lib traceevent: Get rid of die() from pevent_register_event_handler
authorNamhyung Kim <namhyung.kim@lge.com>
Fri, 7 Sep 2012 02:49:46 +0000 (11:49 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 7 Sep 2012 15:15:07 +0000 (12:15 -0300)
commit0ca8da00ad170c12c12350c3a2500591a7bec535
treeb491d60e8e4958021420999a44da95072b9677c9
parent245c5a18433090da0e1a799bdb0faa78552b5992
tools lib traceevent: Get rid of die() from pevent_register_event_handler

If memory allocation for handler fails, return gracefully instead of
calling die().  Note that casts to void * are needed because gcc
complained about discarding 'const' qualifier during implicit argument
cast.

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-2-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/traceevent/event-parse.c