| /linux/tools/mm/ |
| H A D | thp_swap_allocator_test.c | 162 madvise(mem1, MEMSIZE_MTHP, MADV_PAGEOUT); in main() 165 madvise(mem2, MEMSIZE_SMALLFOLIO, MADV_PAGEOUT); in main() 199 if (madvise(mem1, MEMSIZE_MTHP, MADV_PAGEOUT) != 0) { in main() 208 if (madvise(mem2, MEMSIZE_SMALLFOLIO, MADV_PAGEOUT) != 0) { in main()
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | uprobe_multi.c | 15 #ifndef MADV_PAGEOUT 16 #define MADV_PAGEOUT 21 macro 109 /* to guarantee MADV_PAGEOUT work reliably, we need to ensure that in trigger_uprobe() 111 * do MADV_POPULATE_READ, and then MADV_PAGEOUT, if necessary in trigger_uprobe() 116 madvise(addr, page_sz, MADV_PAGEOUT); in trigger_uprobe() 121 /* if page is still resident re-attempt MADV_POPULATE_READ/MADV_PAGEOUT */ in main()
|
| /linux/tools/include/uapi/asm-generic/ |
| H A D | mman-common.h | 73 #define MADV_PAGEOUT 21 /* reclaim these pages */ macro
|
| /linux/tools/testing/selftests/mm/ |
| H A D | pfnmap.c | 181 MADV_PAGEOUT, in TEST_F()
|
| H A D | khugepaged.c | 829 if (madvise(p, page_size, MADV_PAGEOUT)) in collapse_full_of_compound() 830 ksft_exit_fail_perror("madvise(MADV_PAGEOUT)"); 855 if (madvise(p, (max_ptes_swap + 1) * page_size, MADV_PAGEOUT)) in collapse_compound_extreme() 856 ksft_exit_fail_perror("madvise(MADV_PAGEOUT)"); in collapse_compound_extreme() 872 if (madvise(p, max_ptes_swap * page_size, MADV_PAGEOUT)) in collapse_compound_extreme() 873 ksft_exit_fail_perror("madvise(MADV_PAGEOUT)"); in collapse_compound_extreme()
|
| H A D | uffd-wp-mremap.c | 211 madvise(mem, size, MADV_PAGEOUT); in test_one_folio() 213 ksft_test_result_skip("MADV_PAGEOUT did not work, is swap enabled?\n"); in test_one_folio()
|
| H A D | guard-regions.c | 1434 /* Ensure that MADV_COLD, MADV_PAGEOUT do not remove guard markers. */ in TEST_F() 1467 ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_PAGEOUT), 0); in TEST_F() 1551 * We page out using MADV_PAGEOUT before checking guard regions so we drop page 1582 ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_PAGEOUT), 0); in TEST_F() 1822 ASSERT_EQ(madvise(ptr, 10 * page_size, MADV_PAGEOUT), 0); in TEST_F()
|
| H A D | cow.c | 805 madvise(mem, pagesize, MADV_PAGEOUT); 807 ksft_print_msg("MADV_PAGEOUT did not work, is swap enabled?\n"); in run_with_base_page() 978 madvise(mem, size, MADV_PAGEOUT); in do_run_with_thp() 980 ksft_print_msg("MADV_PAGEOUT did not work, is swap enabled?\n"); in do_run_with_thp()
|
| H A D | uffd-unit-tests.c | 420 madvise(gopts->area_dst, gopts->page_size, MADV_PAGEOUT); in uffd_wp_fork_test_common() 1313 * Needs a swap device; skipped if MADV_PAGEOUT cannot evict the page. in thread_state_get() 1339 * folio does not get reclaimed by MADV_PAGEOUT. Retry, since a hot in uffd_mmap_changing_thread() 1344 if (madvise(gopts->area_dst, page_size, MADV_PAGEOUT)) in uffd_mmap_changing_thread() 1345 err("MADV_PAGEOUT"); in uffd_mmap_changing_thread() 1351 uffd_test_skip("MADV_PAGEOUT did not swap the page; is swap enabled?"); in uffd_mmap_changing_thread()
|
| /linux/tools/testing/selftests/cgroup/ |
| H A D | test_zswap.c | 691 values->madvise_ret = madvise(mem, size, MADV_PAGEOUT); in allocate_random_and_wait()
|
| /linux/Documentation/driver-api/crypto/iaa/ |
| H A D | iaa-crypto.rst | 727 #ifndef MADV_PAGEOUT 728 #define MADV_PAGEOUT 21 /* force pages out immediately */ 755 madvise(addr, nr_pages * PG_SZ, MADV_PAGEOUT);
|