summaryrefslogtreecommitdiffstats
path: root/tools/perf/trace/beauty/fs_at_flags.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/trace/beauty/fs_at_flags.c')
-rw-r--r--tools/perf/trace/beauty/fs_at_flags.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/perf/trace/beauty/fs_at_flags.c b/tools/perf/trace/beauty/fs_at_flags.c
index c1365e8f0b96..c200669cb944 100644
--- a/tools/perf/trace/beauty/fs_at_flags.c
+++ b/tools/perf/trace/beauty/fs_at_flags.c
@@ -10,6 +10,14 @@
#include <linux/fcntl.h>
#include <linux/log2.h>
+/*
+ * uapi/linux/fcntl.h does not keep a copy in tools headers directory,
+ * for system with kernel versions before v5.8, need to sync AT_EACCESS macro.
+ */
+#ifndef AT_EACCESS
+#define AT_EACCESS 0x200
+#endif
+
#include "trace/beauty/generated/fs_at_flags_array.c"
static DEFINE_STRARRAY(fs_at_flags, "AT_");