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 | 56 static long orig_hugepages = -1; variable 237 SAFE_FILE_SCANF(PATH_NR_HUGEPAGES, "%ld", &orig_hugepages); in setup() 239 orig_hugepages + 8); in setup() 240 SAFE_FILE_PRINTF(PATH_NR_HUGEPAGES, "%ld", orig_hugepages + 8); in setup() 249 if (orig_hugepages != -1) in cleanup() 250 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 * hpage_size + SIZE) / hpage_size; in setup()
|