Searched refs:thpsize (Results 1 – 3 of 3) sorted by relevance
| /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 | 841 static void do_run_with_thp(test_fn fn, enum thp_run thp_run, size_t thpsize) in do_run_with_thp() 848 mmap_size = 2 * thpsize; in do_run_with_thp() 858 mem = (char *)(((uintptr_t)mmap_mem + thpsize) & ~(thpsize - 1)); in do_run_with_thp() 860 ret = madvise(mem, thpsize, MADV_HUGEPAGE); in do_run_with_thp() 872 if (!pagemap_is_populated(pagemap_fd, mem + thpsize - pagesize)) { in do_run_with_thp() 877 memset(mem, 1, thpsize); in do_run_with_thp() 879 size = thpsize; in do_run_with_thp() 883 assert(thpsize == pmdsize); in do_run_with_thp() 911 ret = madvise(mem + pagesize, thpsize in do_run_with_thp() 829 do_run_with_thp(test_fn fn,enum thp_run thp_run,size_t thpsize) do_run_with_thp() argument [all...] |
| /linux/mm/ |
| H A D | huge_memory.c | 779 static struct thpsize *thpsize_create(int order, struct kobject *parent) in thpsize_create() 782 struct thpsize *thpsize; in thpsize_create() local 785 thpsize = kzalloc_obj(*thpsize); in thpsize_create() 786 if (!thpsize) in thpsize_create() 789 thpsize->order = order; in thpsize_create() 791 ret = kobject_init_and_add(&thpsize->kobj, &thpsize_ktype, parent, in thpsize_create() 794 kfree(thpsize); in thpsize_create() 799 ret = sysfs_add_group(&thpsize->kobj, &any_ctrl_attr_grp); in thpsize_create() 803 ret = sysfs_add_group(&thpsize->kobj, &any_stats_attr_grp); in thpsize_create() 808 ret = sysfs_add_group(&thpsize->kobj, &anon_ctrl_attr_grp); in thpsize_create() [all …]
|