Searched refs:nr_hpages (Results 1 – 3 of 3) sorted by relevance
/tools/testing/selftests/mm/ |
D | khugepaged.c | 45 void *(*setup_area)(int nr_hpages); 48 bool (*check_huge)(void *addr, int nr_hpages); 57 void (*collapse)(const char *msg, char *p, int nr_hpages, 347 static void *anon_setup_area(int nr_hpages) in anon_setup_area() argument 349 return alloc_mapping(nr_hpages); in anon_setup_area() 362 static bool anon_check_huge(void *addr, int nr_hpages) in anon_check_huge() argument 364 return check_huge_anon(addr, nr_hpages, hpage_pmd_size); in anon_check_huge() 367 static void *file_setup_area(int nr_hpages) in file_setup_area() argument 383 size = nr_hpages * hpage_pmd_size; in file_setup_area() 384 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);
|