perf trace beauty: Allow accessing syscall args values in a syscall arg formatter
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 14 Jul 2017 13:13:56 +0000 (10:13 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 19 Jul 2017 02:13:53 +0000 (23:13 -0300)
commitf9f83b3344f9ed6e1d33a87810f38eca5ed6a14f
tree5ccb793eff5d37f3da1e0cf875a14f6c0974da3d
parent9cb7cf86440229fd6e6ad1718712742c344653d8
perf trace beauty: Allow accessing syscall args values in a syscall arg formatter

For instance, fcntl's upcoming 'arg' formatter needs to look at the
'cmd' value to decide how to format its value, sometimes it is a file
flags, sometimes an fd, a pointer to a structure, etc.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-2tw2jfaqm48dtw8a4addghze@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c
tools/perf/trace/beauty/beauty.h