Searched refs:orig_hugepages (Results 1 – 4 of 4) sorted by relevance
/external/ltp/testcases/kernel/mem/hugetlb/lib/ |
D | hugetlb.c | 42 static long orig_hugepages = -1; variable 48 orig_hugepages = get_sys_tune("nr_hugepages"); in save_nr_hugepages() 50 return orig_hugepages; in save_nr_hugepages() 55 if (orig_hugepages != -1) in restore_nr_hugepages() 56 set_sys_tune("nr_hugepages", orig_hugepages, 0); in restore_nr_hugepages()
|
/external/ltp/testcases/kernel/syscalls/futex/ |
D | futex_wake04.c | 62 static long orig_hugepages; variable 78 SAFE_FILE_SCANF(NULL, PATH_NR_HUGEPAGES, "%ld", &orig_hugepages); in setup() 80 if (orig_hugepages <= 0) in setup() 88 if (orig_hugepages <= 0) in cleanup() 89 SAFE_FILE_PRINTF(NULL, PATH_NR_HUGEPAGES, "%ld", orig_hugepages); in cleanup()
|
/external/ltp/testcases/kernel/syscalls/move_pages/ |
D | move_pages12.c | 83 static long orig_hugepages = -1; variable 299 SAFE_FILE_SCANF(PATH_NR_HUGEPAGES, "%ld", &orig_hugepages); in setup() 301 orig_hugepages + 8); in setup() 302 SAFE_FILE_PRINTF(PATH_NR_HUGEPAGES, "%ld", orig_hugepages + 8); in setup() 311 if (orig_hugepages != -1) in cleanup() 312 SAFE_FILE_PRINTF(PATH_NR_HUGEPAGES, "%ld", orig_hugepages); in cleanup()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
D | hugeshmat04.c | 86 long mem_total, hpage_size, orig_hugepages; in setup() local 88 orig_hugepages = save_nr_hugepages(); in setup() 102 hugepages = orig_hugepages + SIZE / hpage_size; in setup()
|