Lines Matching full:collapse
57 void (*collapse)(const char *msg, char *p, int nr_hpages, member
312 * The latter is ineligible for collapse by MADV_COLLAPSE in alloc_hpage()
374 printf("Creating %s for collapse%s...", finfo.path, in file_setup_area()
391 printf("Opening %s read only for collapse...", finfo.path); in file_setup_area()
443 finfo.fd = memfd_create("khugepaged-selftest-collapse-shmem", 0); in shmem_setup_area()
595 .collapse = &khugepaged_collapse,
601 .collapse = &madvise_collapse,
651 c->collapse("Collapse multiple fully populated PTE table", p, nr_hpages, in collapse_full()
662 c->collapse("Do not collapse empty PTE table", p, 1, ops, false); in collapse_empty()
672 c->collapse("Collapse PTE table with single PTE entry present", p, in collapse_single_pte_entry()
697 c->collapse("Maybe collapse with max_ptes_none exceeded", p, 1, in collapse_max_ptes_none()
703 c->collapse("Collapse with max_ptes_none PTEs empty", p, 1, ops, in collapse_max_ptes_none()
732 c->collapse("Collapse with swapping in single PTE entry", p, 1, ops, in collapse_swapin_single_pte()
759 c->collapse("Maybe collapse with max_ptes_swap exceeded", p, 1, ops, in collapse_max_ptes_swap()
778 c->collapse("Collapse with max_ptes_swap pages swapped out", p, in collapse_max_ptes_swap()
807 c->collapse("Collapse PTE table with single PTE mapping compound page", in collapse_single_pte_entry_compound()
827 c->collapse("Collapse PTE table full of compound pages", p, 1, ops, in collapse_full_of_compound()
879 c->collapse("Collapse PTE table full of different compound pages", p, 1, in collapse_compound_extreme()
912 c->collapse("Collapse PTE table with single page shared with parent process", in collapse_fork()
959 c->collapse("Collapse PTE table full of compound pages in child", in collapse_fork_compound()
1007 c->collapse("Maybe collapse with max_ptes_shared exceeded", p, in collapse_max_ptes_shared()
1020 c->collapse("Collapse with max_ptes_shared PTEs shared", in collapse_max_ptes_shared()
1048 c->collapse("Collapse fully populated PTE table...", p, 1, ops, true); in madvise_collapse_existing_thps()
1051 /* c->collapse() will find a hugepage and complain - call directly. */ in madvise_collapse_existing_thps()
1052 __madvise_collapse("Re-collapse PMD-mapped hugepage", p, 1, ops, true); in madvise_collapse_existing_thps()
1071 /* Let khugepaged collapse and leave pmd cleared */ in madvise_retracted_page_tables()
1072 if (wait_for_scan("Collapse and leave PMD cleared", p, nr_hpages, in madvise_retracted_page_tables()
1078 c->collapse("Install huge PMD from page cache", p, nr_hpages, ops, in madvise_retracted_page_tables()
1184 * When testing file-backed memory, the collapse path in main()