Home
last modified time | relevance | path

Searched refs:hpsz (Results 1 – 3 of 3) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages12.c93 static int pgsz, hpsz; variable
104 if (madvise(addr, tpgs * hpsz, MADV_SOFT_OFFLINE) == -1) { in do_soft_offline()
114 int test_pages = tpgs * hpsz / pgsz; in do_child()
157 addr = SAFE_MMAP(NULL, tcases[n].tpages * hpsz, PROT_READ | PROT_WRITE, in do_test()
160 SAFE_MUNMAP(addr, tcases[n].tpages * hpsz); in do_test()
167 ptr = mmap(NULL, tcases[n].tpages * hpsz, in do_test()
183 memset(addr, 0, tcases[n].tpages * hpsz); in do_test()
191 SAFE_MUNMAP(addr, tcases[n].tpages * hpsz); in do_test()
198 SAFE_MUNMAP(addr, tcases[n].tpages * hpsz); in do_test()
217 size / hpsz, node); in alloc_free_huge_on_node()
[all …]
/third_party/ltp/testcases/kernel/numa/
Dsupport_numa.c91 int i, hpsz; in main() local
132 hpsz = read_hugepagesize(); in main()
133 if (hpsz == 0) in main()
136 buf = mmap(NULL, hpsz, PROT_READ | PROT_WRITE, in main()
145 memset(buf, 'a', hpsz); in main()
149 munmap(buf, hpsz); in main()
/third_party/ltp/testcases/kernel/syscalls/futex/
Dfutex_wake04.c86 int hpsz, pgsz; in wakeup_thread2() local
89 hpsz = tst_get_hugepage_size(); in wakeup_thread2()
90 tst_res(TINFO, "Hugepagesize %i", hpsz); in wakeup_thread2()
93 addr = mmap(NULL, hpsz, PROT_WRITE | PROT_READ, in wakeup_thread2()
124 SAFE_MUNMAP(addr, hpsz); in wakeup_thread2()