Lines Matching refs:thpsize
29 static size_t thpsize; variable
64 const size_t mmap_size = 2 * thpsize; in mmap_thp_range()
73 mem = (char *)(((uintptr_t)mmap_mem + thpsize) & ~(thpsize - 1)); in mmap_thp_range()
75 if (madvise(mem, thpsize, MADV_HUGEPAGE)) { in mmap_thp_range()
148 if (!pagemap_is_populated(pagemap_fd, mem + thpsize - pagesize)) { in test_ptrace_write_thp()
206 if (mprotect(mem, thpsize, PROT_READ)) { in test_page_migration_thp()
212 if (!pagemap_is_populated(pagemap_fd, mem + thpsize - pagesize)) { in test_page_migration_thp()
218 if (syscall(__NR_mbind, mem, thpsize, MPOL_LOCAL, NULL, 0x7fful, in test_page_migration_thp()
245 if (mprotect(mem, thpsize, PROT_READ)) { in test_pte_mapped_thp()
251 if (!pagemap_is_populated(pagemap_fd, mem + thpsize - pagesize)) { in test_pte_mapped_thp()
257 if (mprotect(mem + thpsize - pagesize, pagesize, in test_pte_mapped_thp()
332 thpsize = read_pmd_pagesize(); in main()
333 if (thpsize) { in main()
335 thpsize / 1024); in main()
357 if (thpsize) in main()
364 if (thpsize) in main()
367 if (thpsize) in main()