Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/
Dhugemmap05.c73 static long hugepagesize, nr_hugepages, nr_overcommit_hugepages; variable
96 shmid = SAFE_SHMGET(key, (length / 2 * hugepagesize), in test_overcommit()
100 addr = SAFE_MMAP(ADDR, (length / 2 * hugepagesize), in test_overcommit()
170 SAFE_MUNMAP(addr, (length / 2 * hugepagesize)); in test_overcommit()
209 hugepagesize = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
227 if (shmmax < (unsigned long long)(length / 2 * hugepagesize)) { in setup()
230 (length / 2 * hugepagesize)); in setup()
270 memset((char *)addr, '\a', (length / 2 * hugepagesize)); in check_wr_bytes()
273 for (i = 0; i < (length / 2 * hugepagesize); i++) { in check_wr_bytes()
309 hugepagesize / 1024); in init_sys_sz_paths()
/external/stressapptest/src/
Dos.cc406 int64 hugepagesize = FindHugePages() * 2 * kMegabyte; in FindFreeMemSize() local
421 if (hugepagesize > 0) { in FindFreeMemSize()
425 minsize = hugepagesize; in FindFreeMemSize()
449 if (hugepagesize > 0) { in FindFreeMemSize()
450 if (hugepagesize < minsize) { in FindFreeMemSize()
453 hugepagesize / kMegabyte, in FindFreeMemSize()
459 size = hugepagesize; in FindFreeMemSize()
470 hugepagesize / kMegabyte, in FindFreeMemSize()
506 int64 hugepagesize = FindHugePages() * 2 * kMegabyte; in AllocateTestMem() local
514 } else if (hugepagesize >= length) { in AllocateTestMem()
/external/linux-kselftest/tools/testing/selftests/vm/
Dcompaction_test.c28 int read_memory_info(unsigned long *memfree, unsigned long *hugepagesize) in read_memory_info() argument
51 *hugepagesize = atoll(buffer); in read_memory_info()