]> git.baikalelectronics.ru Git - kernel.git/commit
perf trace: Do not print raw args list for syscalls with no args
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 6 May 2016 02:38:05 +0000 (23:38 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 6 May 2016 11:44:30 +0000 (08:44 -0300)
commit85e38d95c5f0a2352b742156de0335a6ad317490
tree9574614bfe0cfefff473217baa1ac49643440900
parent84c56244c2610545246be05f4c4500a15b5a95fd
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 <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Milian Wolff <milian.wolff@kdab.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-ls7pmdqb2xy9339vdburwvnk@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c