Home
last modified time | relevance | path

Searched refs:madvise (Results 1 – 25 of 44) sorted by relevance

12

/Linux-v5.4/tools/testing/selftests/vm/
Dtranshuge-stress.c40 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()
Dgup_benchmark.c100 madvise(p, size, MADV_HUGEPAGE); in main()
102 madvise(p, size, MADV_NOHUGEPAGE); in main()
Duserfaultfd.c132 if (madvise(rel_area, nr_pages * page_size, MADV_DONTNEED)) { in anon_release_pages()
223 if (madvise(rel_area, nr_pages * page_size, MADV_REMOVE)) { in shmem_release_pages()
/Linux-v5.4/Documentation/admin-guide/mm/
Dtranshuge.rst56 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 …]
Dksm.rst32 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.
Duserfaultfd.rst199 enable notifications about madvise(MADV_REMOVE) and
200 madvise(MADV_DONTNEED) calls. The event UFFD_EVENT_REMOVE will
201 be generated upon these calls to madvise. The uffd_msg.remove
/Linux-v5.4/tools/testing/selftests/powerpc/tm/
Dtm-signal-context-force-tm.c68 ret = madvise(ucp->uc_link, sizeof(ucontext_t), MADV_DONTNEED); in usr_signal_handler()
141 if (madvise(ss.ss_sp, SIGSTKSZ, MADV_DONTNEED)) { in tm_trap_test()
/Linux-v5.4/arch/um/os-Linux/
Dprocess.c183 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.4/tools/testing/selftests/x86/
Dprotection_keys.c790 ret = madvise(ptr, HPAGE_SIZE, MADV_HUGEPAGE); in malloc_pkey_anon_huge()
792 ret = madvise(ptr, HPAGE_SIZE, MADV_WILLNEED); in malloc_pkey_anon_huge()
1329 madvise(p1, PAGE_SIZE, MADV_DONTNEED); in get_pointer_to_instructions()
1355 madvise(p1, PAGE_SIZE, MADV_DONTNEED); in test_executing_on_unreadable_memory()
1384 madvise(p1, PAGE_SIZE, MADV_DONTNEED); in test_implicit_mprotect_exec_only_memory()
/Linux-v5.4/mm/
DMakefile56 obj-$(CONFIG_ADVISE_SYSCALLS) += madvise.o
DKconfig400 bool "madvise"
402 Enabling Transparent Hugepage madvise, will only provide a
404 madvise(MADV_HUGEPAGE) but it won't risk to increase the
/Linux-v5.4/tools/testing/selftests/powerpc/signal/
Dsigfuz.c113 madvise(ucp->uc_link, sizeof(ucontext_t), MADV_DONTNEED); in trap_signal_handler()
/Linux-v5.4/kernel/
Dsys_ni.c282 COND_SYSCALL(madvise);
/Linux-v5.4/Documentation/arm64/
Dtagged-address-abi.rst47 management (e.g. ``mmap()``, ``mprotect()``, ``madvise()``). The use
/Linux-v5.4/tools/vm/
Dpage-types.c998 if (madvise(ptr, len, MADV_RANDOM)) in walk_file()
1016 if (madvise(ptr, len, MADV_SEQUENTIAL)) in walk_file()
/Linux-v5.4/drivers/gpu/drm/panfrost/
Dpanfrost_drv.c470 PANFROST_IOCTL(MADVISE, madvise, DRM_RENDER_ALLOW),
/Linux-v5.4/Documentation/vm/
Dhwpoison.rst113 * madvise(MADV_HWPOISON, ....) (as root) - Poison a page in the
/Linux-v5.4/arch/mips/kernel/syscalls/
Dsyscall_n32.tbl37 27 n32 madvise sys_madvise
Dsyscall_n64.tbl37 27 n64 madvise sys_madvise
/Linux-v5.4/arch/ia64/kernel/syscalls/
Dsyscall.tbl197 185 common madvise sys_madvise
/Linux-v5.4/arch/xtensa/kernel/syscalls/
Dsyscall.tbl103 91 common madvise sys_madvise
/Linux-v5.4/tools/perf/arch/x86/entry/syscalls/
Dsyscall_64.tbl39 28 common madvise __x64_sys_madvise
/Linux-v5.4/arch/x86/entry/syscalls/
Dsyscall_64.tbl39 28 common madvise __x64_sys_madvise
/Linux-v5.4/arch/m68k/kernel/syscalls/
Dsyscall.tbl248 238 common madvise sys_madvise
/Linux-v5.4/tools/perf/bench/
Dnuma.c393 ret = madvise(buf, bytes, MADV_HUGEPAGE); in alloc_data()
400 ret = madvise(buf, bytes, MADV_NOHUGEPAGE); in alloc_data()

12