| /linux/tools/testing/selftests/mm/ |
| H A D | hugetlb-madvise.c | 5 * Basic functional testing of madvise MADV_DONTNEED and MADV_REMOVE 74 * Test validity of MADV_DONTNEED addr and length arguments. mmap in main() 97 MADV_DONTNEED); in main() 103 MADV_DONTNEED); in main() 110 * Test alignment of MADV_DONTNEED addr and length arguments in main() 125 MADV_DONTNEED); in main() 132 MADV_DONTNEED)) in main() 142 * Test MADV_DONTNEED on anonymous private mapping in main() 154 if (madvise(addr, NR_HUGE_PAGES * huge_page_size, MADV_DONTNEED)) in main() 163 * Test MADV_DONTNEED o in main() [all...] |
| H A D | process_madv.c | 94 ret = sys_process_madvise(pidfd, vec, madvise_pages, MADV_DONTNEED, 0); in TEST_F() 245 ret = sys_process_madvise(self->remote_pidfd, &vec, 1, MADV_DONTNEED, in TEST_F() 271 ret = sys_process_madvise(-1, &vec, 1, MADV_DONTNEED, 0); in TEST_F() 279 ret = sys_process_madvise(STDIN_FILENO, &vec, 1, MADV_DONTNEED, 0); in TEST_F() 304 ret = sys_process_madvise(pidfd, &vec, 1025, MADV_DONTNEED, 0); in TEST_F() 332 ret = sys_process_madvise(pidfd, &vec, 1, MADV_DONTNEED, 0); in TEST_F() 364 ret = sys_process_madvise(pidfd, &vec, 1, MADV_DONTNEED, invalid_flag);
|
| H A D | hugetlb_madv_vs_map.c | 8 * * madvise(MADV_DONTNEED) on the allocated huge page 47 madvise(huge_ptr, mmap_size, MADV_DONTNEED); in madv()
|
| H A D | hugetlb_fault_after_madv.c | 50 madvise(huge_ptr, huge_page_size, MADV_DONTNEED); in madv()
|
| H A D | mseal_test.c | 1648 ret = sys_madvise(ptr, size, MADV_DONTNEED); in test_seal_discard_ro_anon_on_rw() 1687 ret = sys_madvise(ptr, size, MADV_DONTNEED); in test_seal_discard_ro_anon_on_pkey() 1692 ret = sys_madvise(ptr, size, MADV_DONTNEED); in test_seal_discard_ro_anon_on_pkey() 1732 ret = sys_madvise(ptr, size, MADV_DONTNEED); in test_seal_discard_ro_anon_on_filebacked() 1762 ret = sys_madvise(ptr, size, MADV_DONTNEED); in test_seal_discard_ro_anon_on_shared() 1789 ret = sys_madvise(ptr, size, MADV_DONTNEED); in test_seal_discard_ro_anon() 1819 ret = sys_madvise(ptr, size, MADV_DONTNEED); in test_seal_discard_across_vmas()
|
| H A D | transhuge-stress.c | 126 if (madvise(p, HPAGE_SIZE - psize(), MADV_DONTNEED)) in main() 127 ksft_exit_fail_msg("MADV_DONTNEED"); in main()
|
| H A D | pfnmap.c | 176 MADV_DONTNEED, in TEST_F()
|
| H A D | uffd-unit-tests.c | 355 if (madvise(gopts->area_dst, gopts->page_size, MADV_DONTNEED)) in uffd_wp_unpopulated_test() 356 err("madvise(MADV_DONTNEED) failed"); in uffd_wp_unpopulated_test() 365 if (madvise(gopts->area_dst, gopts->page_size, MADV_DONTNEED)) in uffd_wp_unpopulated_test() 366 err("madvise(MADV_DONTNEED) failed"); in uffd_wp_unpopulated_test() 372 if (madvise(gopts->area_dst, gopts->page_size, MADV_DONTNEED)) in uffd_wp_unpopulated_test() 373 err("madvise(MADV_DONTNEED) failed"); in uffd_wp_unpopulated_test() 413 if (madvise(gopts->area_dst, gopts->page_size, MADV_DONTNEED)) in uffd_wp_fork_test_common() 414 err("MADV_DONTNEED"); in uffd_wp_fork_test_common()
|
| H A D | uffd-common.c | 55 if (madvise(rel_area, gopts->nr_pages * gopts->page_size, MADV_DONTNEED)) in anon_release_pages() 56 err("madvise(MADV_DONTNEED) failed"); in anon_release_pages() 78 if (madvise(rel_area, gopts->nr_pages * gopts->page_size, MADV_DONTNEED)) in hugetlb_release_pages() 79 err("madvise(MADV_DONTNEED) failed"); in hugetlb_release_pages()
|
| H A D | protection_keys.c | 1289 madvise(p1, PAGE_SIZE, MADV_DONTNEED); in test_mprotect_with_pkey_0() 1315 madvise(p1, PAGE_SIZE, MADV_DONTNEED); in test_ptrace_of_child() 1354 madvise(p1, PAGE_SIZE, MADV_DONTNEED); in test_ptrace_of_child()
|
| H A D | ksm_functional_tests.c | 272 if (madvise(map, size / 2, MADV_DONTNEED)) { in test_unmerge_discarded() 273 ksft_test_result_fail("MADV_DONTNEED failed\n"); in test_unmerge_discarded()
|
| H A D | khugepaged.c | 704 madvise(p, page_size, MADV_DONTNEED); in collapse_max_ptes_none() 705 ksft_print_msg("Split huge PMD on MADV_DONTNEED..."); in collapse_max_ptes_none() 897 /* MADV_DONTNEED won't evict tmpfs pages */ in collapse_fork() 905 madvise(p + page_size, hpage_pmd_size - page_size, MADV_DONTNEED); in collapse_fork()
|
| /linux/tools/arch/mips/include/uapi/asm/ |
| H A D | mman.h | 8 #define MADV_DONTNEED 4 macro
|
| /linux/tools/arch/alpha/include/uapi/asm/ |
| H A D | mman.h | 8 #define MADV_DONTNEED 6 macro
|
| /linux/tools/arch/xtensa/include/uapi/asm/ |
| H A D | mman.h | 8 #define MADV_DONTNEED 4 macro
|
| /linux/tools/arch/parisc/include/uapi/asm/ |
| H A D | mman.h | 8 #define MADV_DONTNEED 4 macro
|
| /linux/tools/include/uapi/asm-generic/ |
| H A D | mman-common.h | 49 #define MADV_DONTNEED 4 /* don't need these pages */ macro
|
| /linux/tools/mm/ |
| H A D | thp_swap_allocator_test.c | 76 if (madvise(addr, align_size, MADV_DONTNEED) != 0) in random_madvise_dontneed()
|
| /linux/tools/testing/selftests/mincore/ |
| H A D | mincore_selftest.c | 119 madvise(addr, page_size, MADV_DONTNEED); in TEST()
|
| /linux/tools/testing/selftests/net/ |
| H A D | tcp_mmap.c | 241 madvise(addr, zc.length, MADV_DONTNEED); in child_thread()
|
| /linux/tools/testing/selftests/user_events/ |
| H A D | ftrace_test.c | 429 ASSERT_EQ(0, madvise(anon, l, MADV_DONTNEED)); in TEST_F()
|
| /linux/tools/testing/selftests/kvm/ |
| H A D | guest_memfd_test.c | 226 kvm_madvise(mem, pmd_size, MADV_DONTNEED); in test_collapse()
|
| H A D | memslot_perf_test.c | 653 ret = madvise(hva, npages * guest_page_size, MADV_DONTNEED); in test_memslot_do_unmap() 655 "madvise(%p, MADV_DONTNEED) on VM memory should not fail for gptr 0x%"PRIx64, in test_memslot_do_unmap() 661 "madvise(MADV_DONTNEED) should exactly cover all of the requested area"); in test_memslot_do_unmap()
|
| /linux/tools/testing/selftests/x86/ |
| H A D | test_shadow_stack.c | 130 return madvise(shstk, SS_SIZE, MADV_DONTNEED); in reset_shstk()
|
| /linux/tools/testing/selftests/kvm/arm64/ |
| H A D | page_fault_test.c | 418 ret = madvise(hva, paging_size, MADV_DONTNEED); in punch_hole_in_backing_store()
|