aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorHe Kuang <[email protected]>2015-05-11 12:28:35 +0000
committerArnaldo Carvalho de Melo <[email protected]>2015-05-12 09:59:50 -0300
commit189c466f77d421aef5c196454ab2e9517af7abc9 (patch)
treeb5b06e0fe65af5573b712b9d92d21b133e956ba9 /tools/perf/scripts/python/event_analyzing_sample.py
parent7d5eaba9b33682b734e3a79c21c4a9a5f91624b1 (diff)
perf tests: Fix to get negative exit codes
WEXITSTATUS consists of the least significant 8 bits of the status argument, so we should convert the value to signed char if we have valid negative exit codes. And the return value of test->func() contains negative values: enum { TEST_OK = 0, TEST_FAIL = -1, TEST_SKIP = -2, }; Before this patch: $ perf test -v 1 ... test child finished with 254 ---- end ---- vmlinux symtab matches kallsyms: FAILED! After this patch: $ perf test -v 1 ... test child finished with -2 ---- end ---- vmlinux symtab matches kallsyms: Skip Signed-off-by: He Kuang <[email protected]> Acked-by: Jiri Olsa <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Wang Nan <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions