diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-07-14 18:09:31 +0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-07-19 05:13:59 +0300 |
commit | b84148a910598f3e733e54f3cb736d11911291df (patch) | |
tree | 0d615302e59ec94413975abaef33c0bafa07b141 /tools/perf/trace/beauty | |
parent | 6b3d5c97dbbc2a8e1f8d7e7d87b8c6637293e803 (diff) | |
download | linux-b84148a910598f3e733e54f3cb736d11911291df.tar.xz |
perf trace beauty open flags: Do not depend on the system's O_LARGEFILE define
In x86_64 /usr/include/bits/fcntl.h sets it to zero, so just undef it
and use the standard 00100000 value when decoding the open flags arg.
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-k28megguz5snwop9obvn9mcr@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/trace/beauty')
-rw-r--r-- | tools/perf/trace/beauty/open_flags.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/trace/beauty/open_flags.c b/tools/perf/trace/beauty/open_flags.c index 5fb57bed7ea2..e520112fdb6e 100644 --- a/tools/perf/trace/beauty/open_flags.c +++ b/tools/perf/trace/beauty/open_flags.c @@ -18,6 +18,9 @@ #define O_TMPFILE 020000000 #endif +#undef O_LARGEFILE +#define O_LARGEFILE 00100000 + size_t open__scnprintf_flags(unsigned long flags, char *bf, size_t size) { int printed = 0; |