From: Arnaldo Carvalho de Melo Date: Mon, 17 Jul 2017 19:02:52 +0000 (-0300) Subject: perf trace beauty fcntl: Do not suppress 'cmd' when zero, should be DUPFD X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=39cc355b0486d89cef335e35edde26c14b462126;p=openwrt%2Fstaging%2Fblogic.git perf trace beauty fcntl: Do not suppress 'cmd' when zero, should be DUPFD Before: 77059.513 ( 0.005 ms): bash/6649 fcntl(fd: 1, arg: 10) = 10 After: 77059.513 ( 0.005 ms): bash/6649 fcntl(fd: 1, cmd: DUPFD, arg: 10) = 10 Cc: Adrian Hunter Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-woois88uwcr4xu38xx1ihiwo@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- 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,