Searched refs:thpsize (Results 1 – 4 of 4) sorted by relevance
| /linux/tools/testing/selftests/mm/ |
| 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() 206 if (mprotect(mem, thpsize, PROT_READ)) { in test_page_migration_thp() 245 if (mprotect(mem, thpsize, PROT_READ)) { in test_pte_mapped_thp() 330 thpsize = read_pmd_pagesize(); in main() 331 if (thpsize) { in main() 333 thpsize / 1024); in main() 353 if (thpsize) in main() 360 if (thpsize) in main() [all …]
|
| A D | cow.c | 806 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, 0, 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/mm/ |
| A D | huge_memory.c | 686 struct thpsize *thpsize; in thpsize_create() local 689 thpsize = kzalloc(sizeof(*thpsize), GFP_KERNEL); in thpsize_create() 690 if (!thpsize) in thpsize_create() 693 thpsize->order = order; in thpsize_create() 698 kfree(thpsize); in thpsize_create() 731 return thpsize; in thpsize_create() 746 struct thpsize *thpsize; in hugepage_init_sysfs() local 780 if (IS_ERR(thpsize)) { in hugepage_init_sysfs() 782 err = PTR_ERR(thpsize); in hugepage_init_sysfs() 803 struct thpsize *thpsize, *tmp; in hugepage_exit_sysfs() local [all …]
|
| /linux/include/linux/ |
| A D | huge_mm.h | 313 struct thpsize { struct 319 #define to_thpsize(kobj) container_of(kobj, struct thpsize, kobj) argument
|
Completed in 18 milliseconds