Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/mem/hugetlb/hugeshmat/
Dhugeshmat05.c42 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()
Dhugeshmat04.c86 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()
Dhugeshmat03.c88 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()
Dhugeshmat02.c92 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()
Dhugeshmat01.c168 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/
Dhugemmap06.c41 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/
Dhugeshmget01.c68 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()
Dhugeshmget05.c79 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()
Dhugeshmget03.c65 long hpage_size; in setup() local
76 hpage_size = SAFE_READ_MEMINFO("Hugepagesize:") * 1024; in setup()
77 shm_size = hpage_size; in setup()
Dhugeshmget02.c86 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/
Dhugeshmdt01.c133 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/
Dhugeshmctl02.c93 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()
Dhugeshmctl03.c118 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()
Dhugeshmctl01.c312 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/
Dfuse_test.c242 unsigned long hpage_size = default_huge_page_size(); in main() local
244 if (!hpage_size) { in main()
250 mfd_def_size = hpage_size * 2; in main()
Dmemfd_test.c928 unsigned long hpage_size = default_huge_page_size(); in main() local
930 if (!hpage_size) { in main()
937 mfd_def_size = hpage_size * 2; in main()