Home
last modified time | relevance | path

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

/linux-6.6.21/tools/testing/selftests/mm/
Dksm_tests.c243 static int ksm_merge_pages(int merge_type, void *addr, size_t size, in ksm_merge_pages() argument
246 if (merge_type == KSM_MERGE_MADVISE) { in ksm_merge_pages()
251 } else if (merge_type == KSM_MERGE_PRCTL) { in ksm_merge_pages()
347 static int check_ksm_merge(int merge_type, int mapping, int prot, in check_ksm_merge() argument
363 if (ksm_merge_pages(merge_type, map_ptr, page_size * page_count, start_time, timeout)) in check_ksm_merge()
370 if (merge_type == KSM_MERGE_PRCTL) in check_ksm_merge()
381 static int check_ksm_unmerge(int merge_type, int mapping, int prot, int timeout, size_t page_size) in check_ksm_unmerge() argument
397 if (ksm_merge_pages(merge_type, map_ptr, page_size * page_count, start_time, timeout)) in check_ksm_unmerge()
421 static int check_ksm_zero_page_merge(int merge_type, int mapping, int prot, long page_count, in check_ksm_zero_page_merge() argument
440 if (ksm_merge_pages(merge_type, map_ptr, page_size * page_count, start_time, timeout)) in check_ksm_zero_page_merge()
[all …]