Lines Matching refs:huge_page_size
36 unsigned long huge_page_size; variable
63 *((unsigned long *)(addr + (i * huge_page_size))) = i; in write_fault_pages()
72 dummy += *((unsigned long *)(addr + (i * huge_page_size))); in read_fault_pages()
86 huge_page_size = default_huge_page_size(); in main()
87 if (!huge_page_size) { in main()
92 if (!huge_page_size) { in main()
115 addr = mmap(NULL, (NR_HUGE_PAGES + 2) * huge_page_size, in main()
123 if (munmap(addr, huge_page_size) || in main()
124 munmap(addr + (NR_HUGE_PAGES + 1) * huge_page_size, in main()
125 huge_page_size)) { in main()
129 addr = addr + huge_page_size; in main()
135 ret = madvise(addr - base_page_size, NR_HUGE_PAGES * huge_page_size, in main()
144 ret = madvise(addr, (NR_HUGE_PAGES * huge_page_size) + base_page_size, in main()
152 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main()
157 addr = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main()
170 NR_HUGE_PAGES * huge_page_size - base_page_size, in main()
180 ((NR_HUGE_PAGES - 1) * huge_page_size) + base_page_size, in main()
189 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main()
195 addr = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main()
206 if (madvise(addr, NR_HUGE_PAGES * huge_page_size, MADV_DONTNEED)) { in main()
214 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main()
219 if (fallocate(fd, 0, 0, NR_HUGE_PAGES * huge_page_size)) { in main()
225 addr = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main()
238 if (madvise(addr, NR_HUGE_PAGES * huge_page_size, MADV_DONTNEED)) { in main()
249 if (madvise(addr, NR_HUGE_PAGES * huge_page_size, MADV_DONTNEED)) { in main()
267 0, NR_HUGE_PAGES * huge_page_size)) { in main()
273 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main()
278 if (fallocate(fd, 0, 0, NR_HUGE_PAGES * huge_page_size)) { in main()
284 addr = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main()
297 if (madvise(addr, NR_HUGE_PAGES * huge_page_size, MADV_DONTNEED)) { in main()
308 if (madvise(addr, NR_HUGE_PAGES * huge_page_size, MADV_REMOVE)) { in main()
313 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main()
318 if (fallocate(fd, 0, 0, NR_HUGE_PAGES * huge_page_size)) { in main()
324 addr = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main()
336 addr2 = mmap(NULL, NR_HUGE_PAGES * huge_page_size, in main()
353 if (madvise(addr, NR_HUGE_PAGES * huge_page_size, MADV_DONTNEED)) { in main()
360 if (madvise(addr2, NR_HUGE_PAGES * huge_page_size, MADV_DONTNEED)) { in main()
375 if (madvise(addr, NR_HUGE_PAGES * huge_page_size, MADV_REMOVE)) { in main()
381 (void)munmap(addr, NR_HUGE_PAGES * huge_page_size); in main()
382 (void)munmap(addr2, NR_HUGE_PAGES * huge_page_size); in main()