From 871a09c86ff3466196c3bfded84c5bbeb0b07f81 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sun, 20 Jul 2014 16:13:52 +0200 Subject: add new PR_SET_THP_DISABLE and PR_GET_THP_DISABLE prctl flags 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/sys/prctl.h b/include/sys/prctl.h index d41ff0f6..8cb197c3 100644 --- a/include/sys/prctl.h +++ b/include/sys/prctl.h @@ -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 -- cgit v1.2.1