Skip to content

Commit f60b387

Browse files
committed
tools headers UAPI: Sync linux/mman.h with the kernel
To get the changes in: e346b38 ("mm/mremap: add MREMAP_DONTUNMAP to mremap()") Add that to 'perf trace's mremap 'flags' decoder. This silences this perf build warning: Warning: Kernel ABI header at 'tools/include/uapi/linux/mman.h' differs from latest version at 'include/uapi/linux/mman.h' diff -u tools/include/uapi/linux/mman.h include/uapi/linux/mman.h Cc: Adrian Hunter <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Brian Geffon <[email protected]> Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 027fa8f commit f60b387

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tools/include/uapi/linux/mman.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
#include <asm/mman.h>
66
#include <asm-generic/hugetlb_encode.h>
77

8-
#define MREMAP_MAYMOVE 1
9-
#define MREMAP_FIXED 2
8+
#define MREMAP_MAYMOVE 1
9+
#define MREMAP_FIXED 2
10+
#define MREMAP_DONTUNMAP 4
1011

1112
#define OVERCOMMIT_GUESS 0
1213
#define OVERCOMMIT_ALWAYS 1

tools/perf/trace/beauty/mmap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ static size_t syscall_arg__scnprintf_mremap_flags(char *bf, size_t size,
6969

7070
P_MREMAP_FLAG(MAYMOVE);
7171
P_MREMAP_FLAG(FIXED);
72+
P_MREMAP_FLAG(DONTUNMAP);
7273
#undef P_MREMAP_FLAG
7374

7475
if (flags)

0 commit comments

Comments
 (0)