Skip to content

Commit 0fb75c8

Browse files
committed
tools: Update asm-generic/mman-common.h copy from the kernel
To get the defines introduced in the commit e8c24d3 ("x86/pkeys: Allocation/free syscalls") Silencing this perf build warning: Warning: tools/include/uapi/asm-generic/mman-common.h differs from kernel Need to change 'perf trace' to beautify those syscalls, as soon as booting with a kernel with it. 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-yev9rexu02cl7cjeozzmrl9t@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent e0c4758 commit 0fb75c8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎tools/include/uapi/asm-generic/mman-common.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,9 @@
7272
#define MAP_HUGE_SHIFT 26
7373
#define MAP_HUGE_MASK 0x3f
7474

75+
#define PKEY_DISABLE_ACCESS 0x1
76+
#define PKEY_DISABLE_WRITE 0x2
77+
#define PKEY_ACCESS_MASK (PKEY_DISABLE_ACCESS |\
78+
PKEY_DISABLE_WRITE)
79+
7580
#endif /* __ASM_GENERIC_MMAN_COMMON_H */

0 commit comments

Comments
 (0)