aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <[email protected]>2016-05-05 23:38:05 -0300
committerArnaldo Carvalho de Melo <[email protected]>2016-05-06 08:44:30 -0300
commit4c4d6e519091a3551a0ad2e2e8423d77f3000400 (patch)
tree9574614bfe0cfefff473217baa1ac49643440900 /tools/perf/util/scripting-engines/trace-event-python.c
parentc0edb7467c3d21b213ff734bfe810d81d2c6ed61 (diff)
perf trace: Do not print raw args list for syscalls with no args
The test to check if the arg format had been read from the syscall:sys_enter_name/format file was looking at the list of non-commom fields, and if that is empty, it would think it had failed to read it, because it doesn't exist, for instance, for the clone() syscall. So instead before dumping the raw syscall args list check IS_ERR(sc->tp_format), if that is true, then an attempt was made to read the format file and failed, in which case dump the raw arg list values. Cc: Adrian Hunter <[email protected]> Cc: David Ahern <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Milian Wolff <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Wang Nan <[email protected]> Link: http://lkml.kernel.org/n/[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