[<prev] [next>] [day] [month] [year] [list]
Message-ID: <tip-ukzoldh4arrl8x2uwjafd22h@git.kernel.org>
Date: Thu, 20 Jul 2017 01:42:23 -0700
From: tip-bot for Arnaldo Carvalho de Melo <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: jolsa@...nel.org, acme@...hat.com, mingo@...nel.org,
namhyung@...nel.org, linux-kernel@...r.kernel.org,
tglx@...utronix.de, adrian.hunter@...el.com, wangnan0@...wei.com,
dsahern@...il.com, hpa@...or.com
Subject: [tip:perf/core] perf trace beauty open flags: Support O_TMPFILE and
O_NOFOLLOW
Commit-ID: 6b3d5c97dbbc2a8e1f8d7e7d87b8c6637293e803
Gitweb: http://git.kernel.org/tip/6b3d5c97dbbc2a8e1f8d7e7d87b8c6637293e803
Author: Arnaldo Carvalho de Melo <acme@...hat.com>
AuthorDate: Fri, 14 Jul 2017 11:57:28 -0300
Committer: Arnaldo Carvalho de Melo <acme@...hat.com>
CommitDate: Tue, 18 Jul 2017 23:13:58 -0300
perf trace beauty open flags: Support O_TMPFILE and O_NOFOLLOW
The open syscall flags beautifier wasn't considering those flags, fix
it.
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-ukzoldh4arrl8x2uwjafd22h@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@...hat.com>
---
tools/perf/trace/beauty/open_flags.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/tools/perf/trace/beauty/open_flags.c b/tools/perf/trace/beauty/open_flags.c
index b3c7f11..5fb57be 100644
--- a/tools/perf/trace/beauty/open_flags.c
+++ b/tools/perf/trace/beauty/open_flags.c
@@ -14,6 +14,10 @@
#define O_NOATIME 01000000
#endif
+#ifndef O_TMPFILE
+#define O_TMPFILE 020000000
+#endif
+
size_t open__scnprintf_flags(unsigned long flags, char *bf, size_t size)
{
int printed = 0;
@@ -34,6 +38,8 @@ size_t open__scnprintf_flags(unsigned long flags, char *bf, size_t size)
P_FLAG(DIRECTORY);
P_FLAG(EXCL);
P_FLAG(LARGEFILE);
+ P_FLAG(NOFOLLOW);
+ P_FLAG(TMPFILE);
P_FLAG(NOATIME);
P_FLAG(NOCTTY);
#ifdef O_NONBLOCK
Powered by blists - more mailing lists