]> git.karo-electronics.de Git - linux-beck.git/commit
tools lib traceevent: Introduce pevent_errno
authorNamhyung Kim <namhyung.kim@lge.com>
Wed, 22 Aug 2012 07:00:29 +0000 (16:00 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 22 Aug 2012 19:02:59 +0000 (16:02 -0300)
commitbffddffde7f9bd093909235a25dbb806fe639dde
tree9e290ae4cddff7ae48fa20e1f3312ebcdd418ab4
parentfd34f0b26c9d0f3c3c5c5f83207efa6324cd19f7
tools lib traceevent: Introduce pevent_errno

Define and use error numbers for pevent_parse_event() and get rid of
die() and do_warning() calls. If the function returns non-zero value,
the caller can check the return code and do appropriate things.

I chose the error numbers to be negative not to clash with standard
errno, and as usual, 0 for success.

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/1345618831-9148-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