Searched refs:pmdsize (Results 1 – 2 of 2) sorted by relevance
| /linux/tools/testing/selftests/mm/ |
| H A D | prctl_thp_disable.c | 40 static int test_mmap_thp(enum thp_collapse_type madvise_buf, size_t pmdsize) in test_mmap_thp() argument 47 mmap_size = 2 * pmdsize; in test_mmap_thp() 54 mem = (char *)(((uintptr_t)mmap_mem + pmdsize) & ~(pmdsize - 1)); in test_mmap_thp() 57 madvise(mem, pmdsize, MADV_HUGEPAGE); in test_mmap_thp() 59 madvise(mem, pmdsize, MADV_NOHUGEPAGE); in test_mmap_thp() 62 memset(mem, 1, pmdsize); in test_mmap_thp() 65 madvise(mem, pmdsize, MADV_COLLAPSE); in test_mmap_thp() 68 mprotect(mem, pmdsize, PROT_READ); in test_mmap_thp() 70 ret = check_huge_anon(mem, 1, pmdsize); in test_mmap_thp() 76 size_t pmdsize, in prctl_thp_disable_completely_test() argument [all …]
|
| H A D | cow.c | 36 static size_t pmdsize; variable 52 if (!pmdsize) in detect_thp_sizes() 55 orders = 1UL << sz2ord(pmdsize, pagesize); in detect_thp_sizes() 883 assert(thpsize == pmdsize); in do_run_with_thp() 889 * subpage R/O. This is a noop if the THP is not pmdsize (and in do_run_with_thp() 1226 settings.hugepages[sz2ord(pmdsize, pagesize)].enabled = THP_NEVER; in run_anon_test_case() 1230 if (size == pmdsize) { in run_anon_test_case() 1264 if (pmdsize) in do_test_anon_thp_collapse() 1492 if (!pmdsize) 1501 do_run_with_thp(test_case->fn, THP_RUN_PMD, pmdsize); in test_cow() [all...] |