diff mbox series

[v3,4/5] tools: testing: update tools UAPI header for mman-common.h

Message ID c3e259919d5b876b9a71ba14fe8d6cb85d51f164.1729699916.git.lorenzo.stoakes@oracle.com
State Accepted
Commit 75d60eb30daafb966db0e45f38e4cdeb5e5ed79c
Headers show
Series implement lightweight guard pages | expand

Commit Message

Lorenzo Stoakes Oct. 23, 2024, 4:24 p.m. UTC
Import the new MADV_GUARD_INSTALL/REMOVE madvise flags.

Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
---
 tools/include/uapi/asm-generic/mman-common.h | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/tools/include/uapi/asm-generic/mman-common.h b/tools/include/uapi/asm-generic/mman-common.h
index 6ce1f1ceb432..1ea2c4c33b86 100644
--- a/tools/include/uapi/asm-generic/mman-common.h
+++ b/tools/include/uapi/asm-generic/mman-common.h
@@ -79,6 +79,9 @@ 
 
 #define MADV_COLLAPSE	25		/* Synchronous hugepage collapse */
 
+#define MADV_GUARD_INSTALL 102		/* fatal signal on access to range */
+#define MADV_GUARD_REMOVE 103		/* unguard range */
+
 /* compatibility flags */
 #define MAP_FILE	0