Searched refs:thpsize (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/tools/testing/selftests/mm/ |
H A D | mkdirty.c | 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() [all …]
|
H A D | cow.c | 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() [all …]
|