diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-07-17 16:02:52 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-07-18 23:14:25 -0300 |
commit | 39cc355b0486d89cef335e35edde26c14b462126 (patch) | |
tree | 03dd758d8862c9188ce77834ee6bbcbfe01a300e /tools/perf/builtin-trace.c | |
parent | d47737d524174a81b80c487fe07de3ee2458ee32 (diff) |
perf trace beauty fcntl: Do not suppress 'cmd' when zero, should be DUPFD
Before:
77059.513 ( 0.005 ms): bash/6649 fcntl(fd: 1</dev/pts/12>, arg: 10) = 10</dev/pts/12>
After:
77059.513 ( 0.005 ms): bash/6649 fcntl(fd: 1</dev/pts/12>, cmd: DUPFD, arg: 10) = 10</dev/pts/12>
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-woois88uwcr4xu38xx1ihiwo@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-trace.c')
-rw-r--r-- | tools/perf/builtin-trace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c index b842bd93457f..bab87f612a36 100644 --- a/tools/perf/builtin-trace.c +++ b/tools/perf/builtin-trace.c @@ -652,7 +652,8 @@ static struct syscall_fmt { .arg = { [0] = { .scnprintf = SCA_FDAT, /* fd */ }, }, }, { .name = "fcntl", .errmsg = true, .arg = { [1] = { .scnprintf = SCA_FCNTL_CMD, /* cmd */ - .parm = &strarrays__fcntl_cmds_arrays, /* cmd */ }, + .parm = &strarrays__fcntl_cmds_arrays, + .show_zero = true, }, [2] = { .scnprintf = SCA_FCNTL_ARG, /* arg */ }, }, }, { .name = "fdatasync", .errmsg = true, }, { .name = "flock", .errmsg = true, |