[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tip-woois88uwcr4xu38xx1ihiwo@git.kernel.org>
Date: Thu, 20 Jul 2017 01:57:00 -0700
From: tip-bot for Arnaldo Carvalho de Melo <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: tglx@...utronix.de, adrian.hunter@...el.com, dsahern@...il.com,
wangnan0@...wei.com, hpa@...or.com, mingo@...nel.org,
jolsa@...nel.org, namhyung@...nel.org,
linux-kernel@...r.kernel.org, acme@...hat.com
Subject: [tip:perf/core] perf trace beauty fcntl: Do not suppress 'cmd' when
zero, should be DUPFD
Commit-ID: 39cc355b0486d89cef335e35edde26c14b462126
Gitweb: http://git.kernel.org/tip/39cc355b0486d89cef335e35edde26c14b462126
Author: Arnaldo Carvalho de Melo <acme@...hat.com>
AuthorDate: Mon, 17 Jul 2017 16:02:52 -0300
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
CommitDate: Tue, 18 Jul 2017 23:14:25 -0300
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@...el.com>
Cc: David Ahern <dsahern@...il.com>
Cc: Jiri Olsa <jolsa@...nel.org>
Cc: Namhyung Kim <namhyung@...nel.org>
Cc: Wang Nan <wangnan0@...wei.com>
Link: http://lkml.kernel.org/n/tip-woois88uwcr4xu38xx1ihiwo@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
tools/perf/builtin-trace.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/perf/builtin-trace.c b/tools/perf/builtin-trace.c
index b842bd9..bab87f6 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,
Powered by blists - more mailing lists