Home
last modified time | relevance | path

Searched refs:thpsize (Results 1 – 4 of 4) sorted by relevance

/linux-6.15/tools/testing/selftests/mm/
H A Dmkdirty.c29 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()
206 if (mprotect(mem, thpsize, PROT_READ)) { in test_page_migration_thp()
245 if (mprotect(mem, thpsize, PROT_READ)) { in test_pte_mapped_thp()
333 thpsize = read_pmd_pagesize(); in main()
334 if (thpsize) { in main()
336 thpsize / 1024); in main()
358 if (thpsize) in main()
365 if (thpsize) in main()
[all …]
H A Dcow.c806 mmap_size = 2 * thpsize; in do_run_with_thp()
815 mem = (char *)(((uintptr_t)mmap_mem + thpsize) & ~(thpsize - 1)); in do_run_with_thp()
817 ret = madvise(mem, thpsize, MADV_HUGEPAGE); in do_run_with_thp()
828 if (!pagemap_is_populated(pagemap_fd, mem + thpsize - pagesize)) { in do_run_with_thp()
832 memset(mem, 1, thpsize); in do_run_with_thp()
834 size = thpsize; in do_run_with_thp()
838 assert(thpsize == pmdsize); in do_run_with_thp()
864 ret = madvise(mem + pagesize, thpsize - pagesize, MADV_DONTNEED); in do_run_with_thp()
876 mremap_size = thpsize / 2; in do_run_with_thp()
897 ret = madvise(mem + pagesize, thpsize - pagesize, MADV_DONTFORK); in do_run_with_thp()
[all …]
/linux-6.15/mm/
H A Dhuge_memory.c712 struct thpsize *thpsize; in thpsize_create() local
715 thpsize = kzalloc(sizeof(*thpsize), GFP_KERNEL); in thpsize_create()
716 if (!thpsize) in thpsize_create()
719 thpsize->order = order; in thpsize_create()
724 kfree(thpsize); in thpsize_create()
757 return thpsize; in thpsize_create()
772 struct thpsize *thpsize; in hugepage_init_sysfs() local
806 if (IS_ERR(thpsize)) { in hugepage_init_sysfs()
808 err = PTR_ERR(thpsize); in hugepage_init_sysfs()
829 struct thpsize *thpsize, *tmp; in hugepage_exit_sysfs() local
[all …]
/linux-6.15/include/linux/
H A Dhuge_mm.h307 struct thpsize { struct
313 #define to_thpsize(kobj) container_of(kobj, struct thpsize, kobj) argument