add new PR_SET_THP_DISABLE and PR_GET_THP_DISABLE prctl flags
authorSzabolcs Nagy <nsz@port70.net>
Sun, 20 Jul 2014 14:13:52 +0000 (16:13 +0200)
committerSzabolcs Nagy <nsz@port70.net>
Sun, 20 Jul 2014 16:49:16 +0000 (18:49 +0200)
they can be used to set or query if transparent huge pages are disabled.
introduced in linux 3.15 commit a0715cc22601e8830ace98366c0c2bd8da52af52

include/sys/prctl.h

index d41ff0f6180d8fd6a0c79aaf912d598a58b29830..8cb197c390c17c2194c4391048e2cc338b175982 100644 (file)
@@ -92,6 +92,9 @@ extern "C" {
 
 #define PR_GET_TID_ADDRESS      40
 
+#define PR_SET_THP_DISABLE      41
+#define PR_GET_THP_DISABLE      42
+
 int prctl (int, ...);
 
 #ifdef __cplusplus