Lines Matching refs:collapse
56 void (*collapse)(const char *msg, char *p, int nr_hpages,
608 * The latter is ineligible for collapse by MADV_COLLAPSE
670 printf("Creating %s for collapse%s...", finfo.path,
687 printf("Opening %s read only for collapse...", finfo.path);
739 finfo.fd = memfd_create("khugepaged-selftest-collapse-shmem", 0);
891 .collapse = &khugepaged_collapse,
897 .collapse = &madvise_collapse,
942 c->collapse("Collapse multiple fully populated PTE table", p, nr_hpages,
953 c->collapse("Do not collapse empty PTE table", p, 1, ops, false);
963 c->collapse("Collapse PTE table with single PTE entry present", p,
987 c->collapse("Maybe collapse with max_ptes_none exceeded", p, 1,
993 c->collapse("Collapse with max_ptes_none PTEs empty", p, 1, ops,
1022 c->collapse("Collapse with swapping in single PTE entry", p, 1, ops,
1049 c->collapse("Maybe collapse with max_ptes_swap exceeded", p, 1, ops,
1068 c->collapse("Collapse with max_ptes_swap pages swapped out", p,
1097 c->collapse("Collapse PTE table with single PTE mapping compound page",
1117 c->collapse("Collapse PTE table full of compound pages", p, 1, ops,
1169 c->collapse("Collapse PTE table full of different compound pages", p, 1,
1202 c->collapse("Collapse PTE table with single page shared with parent process",
1249 c->collapse("Collapse PTE table full of compound pages in child",
1297 c->collapse("Maybe collapse with max_ptes_shared exceeded", p,
1310 c->collapse("Collapse with max_ptes_shared PTEs shared",
1338 c->collapse("Collapse fully populated PTE table...", p, 1, ops, true);
1341 /* c->collapse() will find a hugepage and complain - call directly. */
1342 __madvise_collapse("Re-collapse PMD-mapped hugepage", p, 1, ops, true);
1361 /* Let khugepaged collapse and leave pmd cleared */
1368 c->collapse("Install huge PMD from page cache", p, nr_hpages, ops,
1452 * When testing file-backed memory, the collapse path