diff options
author | Namhyung Kim <[email protected]> | 2012-08-22 16:00:29 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2012-08-22 16:02:59 -0300 |
commit | bffddffde7f9bd093909235a25dbb806fe639dde (patch) | |
tree | 9e290ae4cddff7ae48fa20e1f3312ebcdd418ab4 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | fd34f0b26c9d0f3c3c5c5f83207efa6324cd19f7 (diff) |
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 <[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