]> git.karo-electronics.de Git - karo-tx-linux.git/commit
tools lib traceevent: Introduce pevent_filter_strerror()
authorNamhyung Kim <namhyung.kim@lge.com>
Thu, 12 Dec 2013 07:36:17 +0000 (16:36 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 18 Dec 2013 17:47:58 +0000 (14:47 -0300)
commitbf19b82e7cf033319525a9eab12216b59c41c519
tree9bd8cd68ac548688e4291340110e3433a66aae34
parentf1cbf78d175e6202a29f53a7f915520e40a37baf
tools lib traceevent: Introduce pevent_filter_strerror()

The pevent_filter_strerror() function is for receiving actual error
message from pevent_errno value.  To do that, add a static buffer to
event_filter for saving internal error message

If a failed function saved other information in the static buffer
returns the information, otherwise returns generic error message.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Steven Rostedt <rostedt@goodmis.org>
Link: http://lkml.kernel.org/r/1386833777-3790-15-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
tools/lib/traceevent/parse-filter.c