perf trace beauty open flags: Do not depend on the system's O_LARGEFILE define
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 14 Jul 2017 15:09:31 +0000 (12:09 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 19 Jul 2017 02:13:59 +0000 (23:13 -0300)
commitb84148a910598f3e733e54f3cb736d11911291df
tree0d615302e59ec94413975abaef33c0bafa07b141
parent6b3d5c97dbbc2a8e1f8d7e7d87b8c6637293e803
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>
tools/perf/trace/beauty/open_flags.c