Lines Matching refs:thpsize

35 static size_t thpsize;  variable
744 mmap_size = 2 * thpsize; in do_run_with_thp()
753 mem = (char *)(((uintptr_t)mmap_mem + thpsize) & ~(thpsize - 1)); in do_run_with_thp()
755 ret = madvise(mem, thpsize, MADV_HUGEPAGE); in do_run_with_thp()
770 memset(mem, 0, thpsize); in do_run_with_thp()
772 size = thpsize; in do_run_with_thp()
800 ret = madvise(mem + pagesize, thpsize - pagesize, MADV_DONTNEED); in do_run_with_thp()
812 mremap_size = thpsize / 2; in do_run_with_thp()
833 ret = madvise(mem + pagesize, thpsize - pagesize, MADV_DONTFORK); in do_run_with_thp()
847 ret = madvise(mem + pagesize, thpsize - pagesize, MADV_DOFORK); in do_run_with_thp()
1094 if (thpsize) { in run_anon_test_case()
1123 if (thpsize) in tests_per_anon_test_case()
1332 if (!thpsize) in run_anon_thp_test_cases()
1347 return thpsize ? 1 : 0; in tests_per_anon_thp_test_case()
1422 mmap_size = 2 * thpsize; in run_with_huge_zeropage()
1437 mem = (char *)(((uintptr_t)mmap_mem + thpsize) & ~(thpsize - 1)); in run_with_huge_zeropage()
1438 smem = (char *)(((uintptr_t)mmap_smem + thpsize) & ~(thpsize - 1)); in run_with_huge_zeropage()
1440 ret = madvise(mem, thpsize, MADV_HUGEPAGE); in run_with_huge_zeropage()
1441 ret |= madvise(smem, thpsize, MADV_HUGEPAGE); in run_with_huge_zeropage()
1460 fn(mem, smem, thpsize); in run_with_huge_zeropage()
1653 if (thpsize) in run_non_anon_test_case()
1674 if (thpsize) in tests_per_non_anon_test_case()
1686 thpsize = read_pmd_pagesize(); in main()
1687 if (thpsize) in main()
1689 thpsize / 1024); in main()