Home
last modified time | relevance | path

Searched refs:orig_hugepages (Results 1 – 20 of 20) sorted by relevance

/external/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages12.c56 static long orig_hugepages = -1; variable
228 SAFE_FILE_SCANF(PATH_NR_HUGEPAGES, "%ld", &orig_hugepages); in setup()
230 orig_hugepages + 8); in setup()
231 SAFE_FILE_PRINTF(PATH_NR_HUGEPAGES, "%ld", orig_hugepages + 8); in setup()
240 if (orig_hugepages != -1) in cleanup()
241 SAFE_FILE_PRINTF(PATH_NR_HUGEPAGES, "%ld", orig_hugepages); in cleanup()
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/
Dhugeshmat04.c142 orig_hugepages = get_sys_tune("nr_hugepages"); in setup()
145 hugepages = (orig_hugepages * hpage_size + SIZE) / hpage_size; in setup()
153 set_sys_tune("nr_hugepages", orig_hugepages, 0); in cleanup()
Dhugeshmat05.c68 orig_hugepages = get_sys_tune("nr_hugepages"); in setup()
80 set_sys_tune("nr_hugepages", orig_hugepages, 0); in cleanup()
Dhugeshmat02.c132 orig_hugepages = get_sys_tune("nr_hugepages"); in setup()
154 set_sys_tune("nr_hugepages", orig_hugepages, 0); in cleanup()
Dhugeshmat03.c138 orig_hugepages = get_sys_tune("nr_hugepages"); in setup()
159 set_sys_tune("nr_hugepages", orig_hugepages, 0); in cleanup()
Dhugeshmat01.c216 orig_hugepages = get_sys_tune("nr_hugepages"); in setup()
235 set_sys_tune("nr_hugepages", orig_hugepages, 0); in cleanup()
/external/ltp/testcases/kernel/syscalls/futex/
Dfutex_wake04.c62 static long orig_hugepages; variable
78 SAFE_FILE_SCANF(NULL, PATH_NR_HUGEPAGES, "%ld", &orig_hugepages); in setup()
86 SAFE_FILE_PRINTF(NULL, PATH_NR_HUGEPAGES, "%ld", orig_hugepages); in cleanup()
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmget/
Dhugeshmget01.c150 orig_hugepages = get_sys_tune("nr_hugepages"); in setup()
165 set_sys_tune("nr_hugepages", orig_hugepages, 0); in cleanup()
Dhugeshmget03.c120 orig_hugepages = get_sys_tune("nr_hugepages"); in setup()
160 set_sys_tune("nr_hugepages", orig_hugepages, 0); in cleanup()
Dhugeshmget05.c142 orig_hugepages = get_sys_tune("nr_hugepages"); in setup()
164 set_sys_tune("nr_hugepages", orig_hugepages, 0); in cleanup()
Dhugeshmget02.c145 orig_hugepages = get_sys_tune("nr_hugepages"); in setup()
165 set_sys_tune("nr_hugepages", orig_hugepages, 0); in cleanup()
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap01.c165 orig_hugepages = get_sys_tune("nr_hugepages"); in setup()
173 set_sys_tune("nr_hugepages", orig_hugepages, 0); in cleanup()
Dhugemmap04.c180 orig_hugepages = get_sys_tune("nr_hugepages"); in setup()
188 set_sys_tune("nr_hugepages", orig_hugepages, 0); in cleanup()
Dhugemmap06.c77 orig_hugepages = get_sys_tune("nr_hugepages"); in setup()
91 set_sys_tune("nr_hugepages", orig_hugepages, 0); in cleanup()
Dhugemmap02.c201 orig_hugepages = get_sys_tune("nr_hugepages"); in setup()
209 set_sys_tune("nr_hugepages", orig_hugepages, 0); in cleanup()
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/
Dhugeshmctl02.c138 orig_hugepages = get_sys_tune("nr_hugepages"); in setup()
165 set_sys_tune("nr_hugepages", orig_hugepages, 0); in cleanup()
Dhugeshmctl03.c164 orig_hugepages = get_sys_tune("nr_hugepages"); in setup()
186 set_sys_tune("nr_hugepages", orig_hugepages, 0); in cleanup()
Dhugeshmctl01.c400 orig_hugepages = get_sys_tune("nr_hugepages"); in setup()
415 set_sys_tune("nr_hugepages", orig_hugepages, 0); in cleanup()
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmdt/
Dhugeshmdt01.c172 orig_hugepages = get_sys_tune("nr_hugepages"); in setup()
201 set_sys_tune("nr_hugepages", orig_hugepages, 0); in cleanup()
/external/ltp/testcases/kernel/mem/hugetlb/lib/
Dhugetlb.h58 long orig_hugepages; variable