From: Arnaldo Carvalho de Melo Date: Fri, 14 Jul 2017 15:09:31 +0000 (-0300) Subject: perf trace beauty open flags: Do not depend on the system's O_LARGEFILE define X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b84148a910598f3e733e54f3cb736d11911291df;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Wang Nan Link: http://lkml.kernel.org/n/tip-k28megguz5snwop9obvn9mcr@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- 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;