Home
last modified time | relevance | path

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

/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap05.c62 static long hugepagesize, nr_overcommit_hugepages; variable
79 shmid = SAFE_SHMGET(key, (length / 2 * hugepagesize), in test_overcommit()
83 addr = SAFE_MMAP(ADDR, (length / 2 * hugepagesize), in test_overcommit()
153 SAFE_MUNMAP(addr, (length / 2 * hugepagesize)); in test_overcommit()
188 hugepagesize = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
206 if (shmmax < (unsigned long long)(length / 2 * hugepagesize)) { in setup()
209 (length / 2 * hugepagesize)); in setup()
248 memset((char *)addr, '\a', (length / 2 * hugepagesize)); in check_wr_bytes()
251 for (i = 0; i < (length / 2 * hugepagesize); i++) { in check_wr_bytes()
287 hugepagesize / 1024); in init_sys_sz_paths()