Searched refs:nr_hpages (Results 1 – 4 of 4) sorted by relevance
| /linux/tools/testing/selftests/mm/ |
| H A 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 …]
|
| H A D | vm_util.c | 233 bool __check_huge(void *addr, char *pattern, int nr_hpages, in __check_huge() argument 248 return thp == (nr_hpages * (hpage_size >> 10)); in __check_huge() 251 bool check_huge_anon(void *addr, int nr_hpages, uint64_t hpage_size) in check_huge_anon() argument 253 return __check_huge(addr, "AnonHugePages: ", nr_hpages, hpage_size); in check_huge_anon() 256 bool check_huge_file(void *addr, int nr_hpages, uint64_t hpage_size) in check_huge_file() argument 258 return __check_huge(addr, "FilePmdMapped:", nr_hpages, hpage_size); in check_huge_file() 261 bool check_huge_shmem(void *addr, int nr_hpages, uint64_t hpage_size) in check_huge_shmem() argument 263 return __check_huge(addr, "ShmemPmdMapped:", nr_hpages, hpage_size); in check_huge_shmem()
|
| H A D | vm_util.h | 93 bool check_huge_anon(void *addr, int nr_hpages, uint64_t hpage_size); 94 bool check_huge_file(void *addr, int nr_hpages, uint64_t hpage_size); 95 bool check_huge_shmem(void *addr, int nr_hpages, uint64_t hpage_size);
|
| H A D | split_huge_page_test.c | 308 static void verify_rss_anon_split_huge_page_all_zeroes(char *one_page, int nr_hpages, size_t len) in verify_rss_anon_split_huge_page_all_zeroes() argument 313 if (!check_huge_anon(one_page, nr_hpages, pmd_pagesize)) in verify_rss_anon_split_huge_page_all_zeroes() 340 int nr_hpages = 4; in split_pmd_zero_pages() local 341 size_t len = nr_hpages * pmd_pagesize; in split_pmd_zero_pages() 344 verify_rss_anon_split_huge_page_all_zeroes(one_page, nr_hpages, len); in split_pmd_zero_pages()
|