Searched refs:hpage_size (Results 1 – 15 of 15) sorted by relevance
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/ |
D | hugeshmat05.c | 42 static long hpage_size; variable 51 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup() 94 N * hpage_size - page_size, in test_hugeshmat() 95 N * hpage_size - page_size - 1, in test_hugeshmat() 96 hpage_size, in test_hugeshmat() 97 hpage_size + 1 in test_hugeshmat()
|
D | hugeshmat04.c | 86 long mem_total, hpage_size, orig_hugepages; in setup() local 100 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup() 102 hugepages = (orig_hugepages * hpage_size + SIZE) / hpage_size; in setup()
|
D | hugeshmat03.c | 88 long hpage_size; in setup() local 95 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup() 97 shm_size = hpage_size * hugepages / 2; in setup()
|
D | hugeshmat02.c | 92 long hpage_size; in setup() local 99 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup() 101 shm_size = hpage_size * hugepages / 2; in setup()
|
D | hugeshmat01.c | 168 long hpage_size; in setup() local 175 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup() 177 shm_size = hpage_size * hugepages / 2; in setup()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
D | hugemmap06.c | 41 static long hpage_size; variable 56 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup() 82 *(mmap_sz->addr + b * hpage_size) = rand(); in thr() 95 addr = mmap(NULL, sz * hpage_size, in do_mmap() 118 new_addr = mmap(addr, (sz - 1) * hpage_size, in do_mmap() 136 if (munmap(addr, sz * hpage_size) == -1) in do_mmap()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmget/ |
D | hugeshmget01.c | 68 long hpage_size; in setup() local 75 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup() 77 shm_size = hpage_size * hugepages / 2; in setup()
|
D | hugeshmget05.c | 79 long hpage_size; in setup() local 86 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup() 88 shm_size = hpage_size * hugepages / 2; in setup()
|
D | hugeshmget03.c | 65 long hpage_size; in setup() local 76 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup() 77 shm_size = hpage_size; in setup()
|
D | hugeshmget02.c | 86 long hpage_size; in setup() local 93 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup() 95 shm_size = hpage_size * hugepages / 2; in setup()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmdt/ |
D | hugeshmdt01.c | 133 long hpage_size; in setup() local 140 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup() 142 shm_size = hpage_size * hugepages / 2; in setup()
|
/external/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/ |
D | hugeshmctl03.c | 118 long hpage_size; in setup() local 125 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup() 127 shm_size = hpage_size * hugepages / 2; in setup()
|
D | hugeshmctl02.c | 93 long hpage_size; in setup() local 100 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup() 102 shm_size = hpage_size * (hugepages / 2); in setup()
|
D | hugeshmctl01.c | 312 long hpage_size; in setup() local 319 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup() 321 shm_size = hpage_size * hugepages / 2; in setup()
|
/external/linux-kselftest/tools/testing/selftests/memfd/ |
D | memfd_test.c | 1078 unsigned long hpage_size = default_huge_page_size(); in main() local 1080 if (!hpage_size) { in main() 1086 mfd_def_size = hpage_size * 2; in main()
|