Searched refs:hpsz (Results 1 – 3 of 3) sorted by relevance
/external/ltp/testcases/kernel/syscalls/move_pages/ |
D | move_pages12.c | 55 static int pgsz, hpsz; variable 66 int test_pages = TEST_PAGES * hpsz / pgsz; in do_child() 106 addr = SAFE_MMAP(NULL, TEST_PAGES * hpsz, PROT_READ | PROT_WRITE, in do_test() 109 SAFE_MUNMAP(addr, TEST_PAGES * hpsz); in do_test() 118 ptr = SAFE_MMAP(NULL, TEST_PAGES * hpsz, in do_test() 124 memset(addr, 0, TEST_PAGES * hpsz); in do_test() 126 SAFE_MUNMAP(addr, TEST_PAGES * hpsz); in do_test() 145 size / hpsz, node); in alloc_free_huge_on_node() 198 SAFE_FILE_LINES_SCANF(PATH_MEMINFO, "Hugepagesize: %d", &hpsz); in setup() 203 if (4 * hpsz > memfree) in setup() [all …]
|
/external/ltp/testcases/kernel/numa/ |
D | support_numa.c | 93 int i, fd, rc, hpsz; in main() local 161 hpsz = read_hugepagesize(); in main() 162 if (hpsz == 0) in main() 165 buf = mmap(NULL, hpsz, PROT_READ | PROT_WRITE, in main() 174 memset(buf, 'a', hpsz); in main() 178 munmap(buf, hpsz); in main()
|
/external/ltp/testcases/kernel/syscalls/futex/ |
D | futex_wake04.c | 137 int hpsz, pgsz, res; in wakeup_thread2() local 140 hpsz = read_hugepagesize(); in wakeup_thread2() 141 tst_resm(TINFO, "Hugepagesize %i", hpsz); in wakeup_thread2() 144 addr = mmap(NULL, hpsz, PROT_WRITE | PROT_READ, in wakeup_thread2() 193 SAFE_MUNMAP(NULL, addr, hpsz); in wakeup_thread2()
|