perf trace beauty: Give syscall return beautifier more context
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 14 Jul 2017 18:16:54 +0000 (15:16 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 19 Jul 2017 02:14:02 +0000 (23:14 -0300)
commit7ee5743404e3641f3c11792761632a5a7d583587
tree3142a2db599c0c81b61430e157d171694f55247e
parentc2e539d287a2e7c633ad6ecb0cb6b6f13ea05125
perf trace beauty: Give syscall return beautifier more context

We need the current thread and the trace internal state so that we can
use the fd beautifier to augment syscall returns, so use struct
syscall_arg with some fields that make sense on returns (val, thread,
trace).

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-lqag8e86ybidrh5zpqne05ov@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c
tools/perf/trace/beauty/beauty.h
tools/perf/trace/beauty/fcntl.c
tools/perf/trace/beauty/open_flags.c