perf trace beauty: Print O_RDONLY when (flags & O_ACCMODE) == 0
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 17 Dec 2018 14:55:57 +0000 (11:55 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 18 Dec 2018 19:07:42 +0000 (16:07 -0300)
commit601d66d43309534eb7a268bdc42c205521014645
tree938d474607077e425c175ca5e3533ab44193d744
parentc65c83ffe904590162bd762be185ac4d53ce5a85
perf trace beauty: Print O_RDONLY when (flags & O_ACCMODE) == 0

And there are more flags, to match strace's output.

 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3

Also to help with regression tests.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Luis Cláudio Gonçalves <lclaudio@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-ofovpmvdli3bwch30936xn7t@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/trace/beauty/open_flags.c