Home
last modified time | relevance | path

Searched refs:nr_hpages (Results 1 – 4 of 4) sorted by relevance

/linux-6.12.1/tools/testing/selftests/mm/
Dkhugepaged.c45 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 …]
Dvm_util.c196 bool __check_huge(void *addr, char *pattern, int nr_hpages, in __check_huge() argument
231 return thp == (nr_hpages * (hpage_size >> 10)); in __check_huge()
234 bool check_huge_anon(void *addr, int nr_hpages, uint64_t hpage_size) in check_huge_anon() argument
236 return __check_huge(addr, "AnonHugePages: ", nr_hpages, hpage_size); in check_huge_anon()
239 bool check_huge_file(void *addr, int nr_hpages, uint64_t hpage_size) in check_huge_file() argument
241 return __check_huge(addr, "FilePmdMapped:", nr_hpages, hpage_size); in check_huge_file()
244 bool check_huge_shmem(void *addr, int nr_hpages, uint64_t hpage_size) in check_huge_shmem() argument
246 return __check_huge(addr, "ShmemPmdMapped:", nr_hpages, hpage_size); in check_huge_shmem()
Dvm_util.h43 bool check_huge_anon(void *addr, int nr_hpages, uint64_t hpage_size);
44 bool check_huge_file(void *addr, int nr_hpages, uint64_t hpage_size);
45 bool check_huge_shmem(void *addr, int nr_hpages, uint64_t hpage_size);
Dsplit_huge_page_test.c106 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
148 int nr_hpages = 4; in split_pmd_zero_pages() local
149 size_t len = nr_hpages * pmd_pagesize; in split_pmd_zero_pages()
152 verify_rss_anon_split_huge_page_all_zeroes(one_page, nr_hpages, len); in split_pmd_zero_pages()