aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2012-08-22 16:00:30 +0900
committerArnaldo Carvalho de Melo <[email protected]>2012-08-22 16:03:39 -0300
commit2f197b9d7eeaa723a80243610956fe4a17e7b5a4 (patch)
treeb5f8181066874ece8cff95a5a0e8b18857cb5de7 /tools/perf/util/scripting-engines/trace-event-python.c
parentbffddffde7f9bd093909235a25dbb806fe639dde (diff)
tools lib traceevent: Introduce pevent_strerror
The pevent_strerror() sets @buf to a string that describes the (libtraceevent-specific) error condition that is passed via @errnum. This is similar to strerror_r() and does same thing if @errnum has a standard errno value. To sync error string with its code, define PEVENT_ERRORS with _PE() macro and use it as suggested by Steven. Signed-off-by: Namhyung Kim <[email protected]> Acked-by: Steven Rostedt <[email protected]> Cc: Frederic Weisbecker <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Steven Rostedt <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions