Skip to content

Commit ffe3a28

Browse files
committed
perf trace beauty open_flags: Add more conditional defines
Don't handle some flags only if they have its defines in headers at time of building, define what is missing. Cc: Adrian Hunter <[email protected]> Cc: David Ahern <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Wang Nan <[email protected]> Link: http://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 4c7c224 commit ffe3a28

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tools/perf/trace/beauty/open_flags.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,18 @@
22
#include <sys/stat.h>
33
#include <fcntl.h>
44

5+
#ifndef O_DIRECT
6+
#define O_DIRECT 00040000
7+
#endif
8+
9+
#ifndef O_DIRECTORY
10+
#define O_DIRECTORY 00200000
11+
#endif
12+
13+
#ifndef O_NOATIME
14+
#define O_NOATIME 01000000
15+
#endif
16+
517
static size_t syscall_arg__scnprintf_open_flags(char *bf, size_t size,
618
struct syscall_arg *arg)
719
{

0 commit comments

Comments
 (0)