Searched refs:nr_hpages (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.6/tools/testing/selftests/mm/ |
D | khugepaged.c | 44 void *(*setup_area)(int nr_hpages); 47 bool (*check_huge)(void *addr, int nr_hpages); 56 void (*collapse)(const char *msg, char *p, int nr_hpages, 643 static void *anon_setup_area(int nr_hpages) in anon_setup_area() argument 645 return alloc_mapping(nr_hpages); in anon_setup_area() 658 static bool anon_check_huge(void *addr, int nr_hpages) in anon_check_huge() argument 660 return check_huge_anon(addr, nr_hpages, hpage_pmd_size); in anon_check_huge() 663 static void *file_setup_area(int nr_hpages) in file_setup_area() argument 679 size = nr_hpages * hpage_pmd_size; in file_setup_area() 680 p = alloc_mapping(nr_hpages); in file_setup_area() [all …]
|
D | vm_util.c | 100 bool __check_huge(void *addr, char *pattern, int nr_hpages, in __check_huge() argument 135 return thp == (nr_hpages * (hpage_size >> 10)); in __check_huge() 138 bool check_huge_anon(void *addr, int nr_hpages, uint64_t hpage_size) in check_huge_anon() argument 140 return __check_huge(addr, "AnonHugePages: ", nr_hpages, hpage_size); in check_huge_anon() 143 bool check_huge_file(void *addr, int nr_hpages, uint64_t hpage_size) in check_huge_file() argument 145 return __check_huge(addr, "FilePmdMapped:", nr_hpages, hpage_size); in check_huge_file() 148 bool check_huge_shmem(void *addr, int nr_hpages, uint64_t hpage_size) in check_huge_shmem() argument 150 return __check_huge(addr, "ShmemPmdMapped:", nr_hpages, hpage_size); in check_huge_shmem()
|
D | vm_util.h | 42 bool check_huge_anon(void *addr, int nr_hpages, uint64_t hpage_size); 43 bool check_huge_file(void *addr, int nr_hpages, uint64_t hpage_size); 44 bool check_huge_shmem(void *addr, int nr_hpages, uint64_t hpage_size);
|