Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages12.c82 static int pgsz, hpsz; variable
93 if (madvise(addr, tpgs * hpsz, MADV_SOFT_OFFLINE) == -1) { in do_soft_offline()
103 int test_pages = tpgs * hpsz / pgsz; in do_child()
147 addr = SAFE_MMAP(NULL, tcases[n].tpages * hpsz, PROT_READ | PROT_WRITE, in do_test()
150 SAFE_MUNMAP(addr, tcases[n].tpages * hpsz); in do_test()
157 ptr = mmap(NULL, tcases[n].tpages * hpsz, in do_test()
173 memset(addr, 0, tcases[n].tpages * hpsz); in do_test()
181 SAFE_MUNMAP(addr, tcases[n].tpages * hpsz); in do_test()
188 SAFE_MUNMAP(addr, tcases[n].tpages * hpsz); in do_test()
207 size / hpsz, node); in alloc_free_huge_on_node()
[all …]
/external/ltp/testcases/kernel/numa/
Dsupport_numa.c92 int i, hpsz; in main() local
133 hpsz = read_hugepagesize(); in main()
134 if (hpsz == 0) in main()
137 buf = mmap(NULL, hpsz, PROT_READ | PROT_WRITE, in main()
146 memset(buf, 'a', hpsz); in main()
150 munmap(buf, hpsz); in main()
/external/ltp/testcases/kernel/syscalls/futex/
Dfutex_wake04.c137 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()