/Linux-v5.10/tools/testing/selftests/vm/ |
D | khugepaged.c | 488 madvise(p, hpage_pmd_size, MADV_HUGEPAGE); in wait_for_scan() 503 madvise(p, hpage_pmd_size, MADV_NOHUGEPAGE); in wait_for_scan() 526 madvise(p, page_size, MADV_DONTNEED); in alloc_at_fault() 621 if (madvise(p, page_size, MADV_PAGEOUT)) { in collapse_swapin_single_pte() 652 if (madvise(p, (max_ptes_swap + 1) * page_size, MADV_PAGEOUT)) { in collapse_max_ptes_swap() 673 if (madvise(p, max_ptes_swap * page_size, MADV_PAGEOUT)) { in collapse_max_ptes_swap() 702 madvise(p, hpage_pmd_size, MADV_HUGEPAGE); in collapse_single_pte_entry_compound() 708 madvise(p, hpage_pmd_size, MADV_NOHUGEPAGE); in collapse_single_pte_entry_compound() 711 madvise(p + page_size, hpage_pmd_size - page_size, MADV_DONTNEED); in collapse_single_pte_entry_compound() 734 madvise(p, hpage_pmd_size, MADV_HUGEPAGE); in collapse_full_of_compound() [all …]
|
D | transhuge-stress.c | 40 if (madvise(ptr, HPAGE_SIZE, MADV_HUGEPAGE)) in allocate_transhuge() 95 if (madvise(ptr, len, MADV_HUGEPAGE)) in main() 133 if (madvise(p, HPAGE_SIZE - PAGE_SIZE, MADV_DONTNEED)) in main()
|
D | gup_benchmark.c | 121 madvise(p, size, MADV_HUGEPAGE); in main() 123 madvise(p, size, MADV_NOHUGEPAGE); in main()
|
D | protection_keys.c | 745 ret = madvise(ptr, HPAGE_SIZE, MADV_HUGEPAGE); in malloc_pkey_anon_huge() 747 ret = madvise(ptr, HPAGE_SIZE, MADV_WILLNEED); in malloc_pkey_anon_huge() 1402 madvise(p1, PAGE_SIZE, MADV_DONTNEED); in get_pointer_to_instructions() 1428 madvise(p1, PAGE_SIZE, MADV_DONTNEED); in test_executing_on_unreadable_memory() 1455 madvise(p1, PAGE_SIZE, MADV_DONTNEED); in test_implicit_mprotect_exec_only_memory()
|
D | userfaultfd.c | 173 if (madvise(rel_area, nr_pages * page_size, MADV_DONTNEED)) { in anon_release_pages() 273 if (madvise(rel_area, nr_pages * page_size, MADV_REMOVE)) { in shmem_release_pages()
|
/Linux-v5.10/Documentation/admin-guide/mm/ |
D | transhuge.rst | 56 interface and using madvise(2) and prctl(2) system calls. 79 MADV_HUGEPAGE madvise regions. 81 Embedded systems should enable hugepages only inside madvise regions 87 madvise(MADV_HUGEPAGE) on their critical mmapped regions. 103 echo madvise >/sys/kernel/mm/transparent_hugepage/enabled 107 anonymous hugepages in case they're not immediately free to madvise 119 echo defer+madvise >/sys/kernel/mm/transparent_hugepage/defrag 120 echo madvise >/sys/kernel/mm/transparent_hugepage/defrag 136 defer+madvise 138 only for regions that have used madvise(MADV_HUGEPAGE); all [all …]
|
D | ksm.rst | 32 Controlling KSM with madvise 36 has advised to be likely candidates for merging, by using the madvise(2) 39 int madvise(addr, length, MADV_MERGEABLE) 45 int madvise(addr, length, MADV_UNMERGEABLE) 52 If KSM is not configured into the running kernel, madvise MADV_MERGEABLE 61 or MADV_UNMERGEABLE region, the madvise may return ENOMEM if the process 64 Like other madvise calls, they are intended for use on mapped areas of 181 indicate poor use of madvise MADV_MERGEABLE.
|
D | userfaultfd.rst | 251 enable notifications about madvise(MADV_REMOVE) and 252 madvise(MADV_DONTNEED) calls. The event ``UFFD_EVENT_REMOVE`` will 253 be generated upon these calls to madvise(). The ``uffd_msg.remove``
|
/Linux-v5.10/tools/testing/selftests/powerpc/tm/ |
D | tm-signal-context-force-tm.c | 69 ret = madvise(ucp->uc_link, sizeof(ucontext_t), MADV_DONTNEED); in usr_signal_handler() 138 if (madvise(ss.ss_sp, SIGSTKSZ, MADV_DONTNEED)) { in tm_trap_test()
|
/Linux-v5.10/arch/um/os-Linux/ |
D | process.c | 183 err = madvise(addr, length, MADV_REMOVE); in os_drop_memory() 210 if (madvise(addr, UM_KERN_PAGE_SIZE, MADV_REMOVE) != 0) { in can_drop_memory()
|
/Linux-v5.10/tools/testing/selftests/arm64/mte/ |
D | check_ksm_options.c | 113 ret = madvise(ptr, TEST_UNIT * page_sz, MADV_MERGEABLE); in check_madvise_options()
|
/Linux-v5.10/mm/ |
D | Makefile | 66 obj-$(CONFIG_ADVISE_SYSCALLS) += madvise.o
|
D | Kconfig | 418 bool "madvise" 420 Enabling Transparent Hugepage madvise, will only provide a 422 madvise(MADV_HUGEPAGE) but it won't risk to increase the
|
/Linux-v5.10/tools/testing/selftests/mincore/ |
D | mincore_selftest.c | 120 madvise(addr, page_size, MADV_DONTNEED); in TEST()
|
/Linux-v5.10/tools/testing/selftests/powerpc/signal/ |
D | sigfuz.c | 113 madvise(ucp->uc_link, sizeof(ucontext_t), MADV_DONTNEED); in trap_signal_handler()
|
/Linux-v5.10/kernel/ |
D | sys_ni.c | 282 COND_SYSCALL(madvise);
|
/Linux-v5.10/Documentation/arm64/ |
D | memory-tagging-extension.rst | 54 **Note**: ``madvise()`` memory ranges with ``MADV_DONTNEED`` and 135 memory map attributes with the exception of the ``madvise()`` ranges
|
D | tagged-address-abi.rst | 47 management (e.g. ``mprotect()``, ``madvise()``). The use of valid
|
/Linux-v5.10/tools/testing/selftests/net/ |
D | tcp_mmap.c | 208 madvise(addr, zc.length, MADV_DONTNEED); in child_thread()
|
/Linux-v5.10/tools/vm/ |
D | page-types.c | 1000 if (madvise(ptr, len, MADV_RANDOM)) in walk_file() 1018 if (madvise(ptr, len, MADV_SEQUENTIAL)) in walk_file()
|
/Linux-v5.10/Documentation/vm/ |
D | hwpoison.rst | 113 * madvise(MADV_HWPOISON, ....) (as root) - Poison a page in the
|
/Linux-v5.10/arch/mips/kernel/syscalls/ |
D | syscall_n32.tbl | 37 27 n32 madvise sys_madvise
|
D | syscall_n64.tbl | 37 27 n64 madvise sys_madvise
|
/Linux-v5.10/drivers/gpu/drm/panfrost/ |
D | panfrost_drv.c | 541 PANFROST_IOCTL(MADVISE, madvise, DRM_RENDER_ALLOW),
|
/Linux-v5.10/arch/ia64/kernel/syscalls/ |
D | syscall.tbl | 197 185 common madvise sys_madvise
|