diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-07-14 16:57:28 +0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-07-19 04:13:58 +0200 |
commit | 6b3d5c97dbbc2a8e1f8d7e7d87b8c6637293e803 (patch) | |
tree | 5565a128e7979612ef2cf97848558c0156fbabe2 /tools/perf/trace | |
parent | perf trace: Allow syscall_arg beautifiers to set a different return formatter (diff) | |
download | linux-6b3d5c97dbbc2a8e1f8d7e7d87b8c6637293e803.tar.xz linux-6b3d5c97dbbc2a8e1f8d7e7d87b8c6637293e803.zip |
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@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-ukzoldh4arrl8x2uwjafd22h@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/trace')
-rw-r--r-- | tools/perf/trace/beauty/open_flags.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/trace/beauty/open_flags.c b/tools/perf/trace/beauty/open_flags.c index b3c7f1155d80..5fb57bed7ea2 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 |