Symbol: thpsize
include/linux/huge_mm.h
321
#define to_thpsize(kobj) container_of(kobj, struct thpsize, kobj)
mm/huge_memory.c
718
static struct thpsize *thpsize_create(int order, struct kobject *parent)
mm/huge_memory.c
721
struct thpsize *thpsize;
mm/huge_memory.c
724
thpsize = kzalloc_obj(*thpsize);
mm/huge_memory.c
725
if (!thpsize)
mm/huge_memory.c
728
thpsize->order = order;
mm/huge_memory.c
730
ret = kobject_init_and_add(&thpsize->kobj, &thpsize_ktype, parent,
mm/huge_memory.c
733
kfree(thpsize);
mm/huge_memory.c
738
ret = sysfs_add_group(&thpsize->kobj, &any_ctrl_attr_grp);
mm/huge_memory.c
742
ret = sysfs_add_group(&thpsize->kobj, &any_stats_attr_grp);
mm/huge_memory.c
747
ret = sysfs_add_group(&thpsize->kobj, &anon_ctrl_attr_grp);
mm/huge_memory.c
751
ret = sysfs_add_group(&thpsize->kobj, &anon_stats_attr_grp);
mm/huge_memory.c
757
ret = sysfs_add_group(&thpsize->kobj, &file_ctrl_attr_grp);
mm/huge_memory.c
761
ret = sysfs_add_group(&thpsize->kobj, &file_stats_attr_grp);
mm/huge_memory.c
766
return thpsize;
mm/huge_memory.c
768
kobject_put(&thpsize->kobj);
mm/huge_memory.c
781
struct thpsize *thpsize;
mm/huge_memory.c
814
thpsize = thpsize_create(order, *hugepage_kobj);
mm/huge_memory.c
815
if (IS_ERR(thpsize)) {
mm/huge_memory.c
817
err = PTR_ERR(thpsize);
mm/huge_memory.c
820
list_add(&thpsize->node, &thpsize_list);
mm/huge_memory.c
838
struct thpsize *thpsize, *tmp;
mm/huge_memory.c
840
list_for_each_entry_safe(thpsize, tmp, &thpsize_list, node) {
mm/huge_memory.c
841
list_del(&thpsize->node);
mm/huge_memory.c
842
kobject_put(&thpsize->kobj);
tools/testing/selftests/mm/cow.c
841
static void do_run_with_thp(test_fn fn, enum thp_run thp_run, size_t thpsize)
tools/testing/selftests/mm/cow.c
848
mmap_size = 2 * thpsize;
tools/testing/selftests/mm/cow.c
858
mem = (char *)(((uintptr_t)mmap_mem + thpsize) & ~(thpsize - 1));
tools/testing/selftests/mm/cow.c
860
ret = madvise(mem, thpsize, MADV_HUGEPAGE);
tools/testing/selftests/mm/cow.c
872
if (!pagemap_is_populated(pagemap_fd, mem + thpsize - pagesize)) {
tools/testing/selftests/mm/cow.c
877
memset(mem, 1, thpsize);
tools/testing/selftests/mm/cow.c
879
size = thpsize;
tools/testing/selftests/mm/cow.c
883
assert(thpsize == pmdsize);
tools/testing/selftests/mm/cow.c
911
ret = madvise(mem + pagesize, thpsize - pagesize, MADV_DONTNEED);
tools/testing/selftests/mm/cow.c
924
mremap_size = thpsize / 2;
tools/testing/selftests/mm/cow.c
947
ret = madvise(mem + pagesize, thpsize - pagesize, MADV_DONTFORK);
tools/testing/selftests/mm/cow.c
963
ret = madvise(mem + pagesize, thpsize - pagesize, MADV_DOFORK);
tools/testing/selftests/mm/mkdirty.c
148
if (!pagemap_is_populated(pagemap_fd, mem + thpsize - pagesize)) {
tools/testing/selftests/mm/mkdirty.c
206
if (mprotect(mem, thpsize, PROT_READ)) {
tools/testing/selftests/mm/mkdirty.c
212
if (!pagemap_is_populated(pagemap_fd, mem + thpsize - pagesize)) {
tools/testing/selftests/mm/mkdirty.c
218
if (syscall(__NR_mbind, mem, thpsize, MPOL_LOCAL, NULL, 0x7fful,
tools/testing/selftests/mm/mkdirty.c
245
if (mprotect(mem, thpsize, PROT_READ)) {
tools/testing/selftests/mm/mkdirty.c
251
if (!pagemap_is_populated(pagemap_fd, mem + thpsize - pagesize)) {
tools/testing/selftests/mm/mkdirty.c
257
if (mprotect(mem + thpsize - pagesize, pagesize,
tools/testing/selftests/mm/mkdirty.c
29
static size_t thpsize;
tools/testing/selftests/mm/mkdirty.c
333
thpsize = read_pmd_pagesize();
tools/testing/selftests/mm/mkdirty.c
334
if (thpsize) {
tools/testing/selftests/mm/mkdirty.c
336
thpsize / 1024);
tools/testing/selftests/mm/mkdirty.c
358
if (thpsize)
tools/testing/selftests/mm/mkdirty.c
365
if (thpsize)
tools/testing/selftests/mm/mkdirty.c
368
if (thpsize)
tools/testing/selftests/mm/mkdirty.c
64
const size_t mmap_size = 2 * thpsize;
tools/testing/selftests/mm/mkdirty.c
73
mem = (char *)(((uintptr_t)mmap_mem + thpsize) & ~(thpsize - 1));
tools/testing/selftests/mm/mkdirty.c
75
if (madvise(mem, thpsize, MADV_HUGEPAGE)) {