Searched refs:nr_hpages (Results 1 – 4 of 4) sorted by relevance
| /linux/tools/testing/selftests/mm/ |
| H A D | khugepaged.c | 53 void *(*setup_area)(int nr_hpages); 56 bool (*check_huge)(void *addr, size_t len, int nr_hpages, unsigned long hpage_size); 67 void (*collapse)(const char *msg, char *p, int nr_hpages, 302 static void *anon_setup_area(int nr_hpages) in anon_setup_area() argument 304 return alloc_mapping(nr_hpages); in anon_setup_area() 317 static bool anon_check_huge(void *addr, size_t len, int nr_hpages, in anon_check_huge() argument 320 return check_huge_anon(addr, len, nr_hpages, hpage_size); in anon_check_huge() 323 static void *file_setup_area_common(int nr_hpages, enum file_setup_ops setup) in file_setup_area_common() argument 339 size = nr_hpages * hpage_pmd_size; in file_setup_area_common() 376 static void *file_setup_read_only_area(int nr_hpages) in file_setup_read_only_area() argument [all …]
|
| H A D | vm_util.c | 354 static bool __check_pmd_huge(void *addr, char *pattern, int nr_hpages, in __check_pmd_huge() argument 369 return thp == (nr_hpages * (hpage_size >> 10)); in __check_pmd_huge() 372 static bool check_large_folios(void *addr, size_t len, int nr_hpages, in check_large_folios() argument 404 if (orders[order] == nr_hpages) in check_large_folios() 413 bool check_huge_anon(void *addr, size_t len, int nr_hpages, uint64_t hpage_size) in check_huge_anon() argument 421 return __check_pmd_huge(addr, "AnonHugePages: ", nr_hpages, hpage_size); in check_huge_anon() 423 return check_large_folios(addr, len, nr_hpages, hpage_size); in check_huge_anon() 426 bool check_huge_file(void *addr, size_t len, int nr_hpages, uint64_t hpage_size) in check_huge_file() argument 434 return __check_pmd_huge(addr, "FilePmdMapped:", nr_hpages, hpage_size); in check_huge_file() 436 return check_large_folios(addr, len, nr_hpages, hpage_size); in check_huge_file() [all …]
|
| H A D | vm_util.h | 93 bool check_huge_anon(void *addr, size_t len, int nr_hpages, uint64_t hpage_size); 94 bool check_huge_file(void *addr, size_t len, int nr_hpages, uint64_t hpage_size); 95 bool check_huge_shmem(void *addr, size_t len, int nr_hpages, uint64_t hpage_size);
|
| H A D | split_huge_page_test.c | 171 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 176 if (!check_huge_anon(one_page, nr_hpages * pmd_pagesize, nr_hpages, pmd_pagesize)) in verify_rss_anon_split_huge_page_all_zeroes() 191 if (!check_huge_anon(one_page, nr_hpages * pmd_pagesize, 0, pmd_pagesize)) in verify_rss_anon_split_huge_page_all_zeroes() 203 int nr_hpages = 4; in split_pmd_zero_pages() local 204 size_t len = nr_hpages * pmd_pagesize; in split_pmd_zero_pages() 207 verify_rss_anon_split_huge_page_all_zeroes(one_page, nr_hpages, len); in split_pmd_zero_pages()
|