perf trace: Use the fd->name beautifier as default for "fd" args
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 23 May 2016 15:59:53 +0000 (12:59 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 23 May 2016 19:41:00 +0000 (16:41 -0300)
commitb6565c908ad7eb28dfdda9578ec5a074e080cedc
treed9c7d14dae37f46d8bcfc6a86787797f07945733
parent508be0dfe6287d4e6452f5a1dc08856df74cb217
perf trace: Use the fd->name beautifier as default for "fd" args

Noticed when the 'setsockopt' 'fd' arg wasn't being formatted via
the SCA_FD beautifier, so just remove the setting of "fd" args to
SCA_FD and do it when reading the syscall info, like we do for
args of type "pid_t", i.e. "fd" as the name should be enough as
the decision to use the SFA_FD beautifier. For odd cases we can
just do it explicitely.

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