Searched refs:MADV_COLLAPSE (Results 1 – 9 of 9) sorted by relevance
| /linux/tools/include/uapi/asm-generic/ |
| H A D | mman-common.h | 80 #define MADV_COLLAPSE 25 /* Synchronous hugepage collapse */ macro
|
| /linux/tools/testing/selftests/mm/ |
| H A D | prctl_thp_disable.c | 28 THP_COLLAPSE_MADV_COLLAPSE, /* MADV_COLLAPSE after access */ 33 * page fault for MADV_HUGE, and after for MADV_COLLAPSE), and check if the 65 madvise(mem, pmdsize, MADV_COLLAPSE); in test_mmap_thp()
|
| H A D | process_madv.c | 124 * This test deterministically validates process_madvise() with MADV_COLLAPSE 129 * The correctness of the MADV_COLLAPSE can be found in the relevant test examples in khugepaged. 196 ret = sys_process_madvise(self->remote_pidfd, &vec, 1, MADV_COLLAPSE, in TEST_F()
|
| H A D | cow.c | 1309 ret = madvise(mem, size, MADV_COLLAPSE); in do_test_anon_thp_collapse() 1311 ksft_perror("MADV_COLLAPSE failed"); in do_test_anon_thp_collapse() 1387 ret = madvise(mem, size, MADV_COLLAPSE); in do_test_anon_thp_collapse() 1389 ksft_perror("MADV_COLLAPSE failed"); in do_test_anon_thp_collapse()
|
| H A D | khugepaged.c | 244 * MADV_COLLAPSE is a best-effort request and may fail if an internal in check_swap() 255 ret = madvise(p, size, MADV_COLLAPSE); in check_swap() 275 * The latter is ineligible for collapse by MADV_COLLAPSE in fill_memory() 276 * while the former might cause MADV_COLLAPSE to race with in fill_memory() 278 * would cause MADV_COLLAPSE to fail with EAGAIN. in fill_memory() 282 ksft_exit_fail_perror("madvise(MADV_COLLAPSE)"); 284 ksft_exit_fail_perror("madvise(MADV_COLLAPSE)"); 525 * read&write file collapse succeeds for MADV_COLLAPSE because dirty in madvise_collapse() 531 * Prevent khugepaged interference and tests that MADV_COLLAPSE in madvise_collapse()
|
| H A D | uffd-unit-tests.c | 545 * NOTE: MADV_COLLAPSE is not yet compatible with WP, so testing in uffd_minor_test_common() 551 /* NOTE! MADV_COLLAPSE may not work with uffd-wp */ in uffd_minor_test_common() 582 MADV_COLLAPSE)) { in uffd_minor_test_common() 584 uffd_test_skip("MADV_COLLAPSE failed"); in uffd_minor_test_common() 2425 /* MADV_COLLAPSE only works with shmem */ 2427 /* We can't test MADV_COLLAPSE, so try our luck */
|
| H A D | guard-regions.c | 2238 EXPECT_NE(madvise(ptr, size, MADV_COLLAPSE), 0); in TEST_F()
|
| H A D | hmm-tests.c | 2111 ret = madvise(map, size, MADV_COLLAPSE); in TEST_F()
|
| /linux/tools/testing/selftests/kvm/ |
| H A D | guest_memfd_test.c | 219 TEST_ASSERT_EQ(madvise(mem, pmd_size, MADV_COLLAPSE), -1); in test_collapse()
|