/Linux-v4.19/tools/testing/selftests/vm/ |
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 | 72 madvise(p, size, MADV_HUGEPAGE); in main() 74 madvise(p, size, MADV_NOHUGEPAGE); in main()
|
D | userfaultfd.c | 122 if (madvise(rel_area, nr_pages * page_size, MADV_DONTNEED)) { in anon_release_pages() 213 if (madvise(rel_area, nr_pages * page_size, MADV_REMOVE)) { in shmem_release_pages()
|
/Linux-v4.19/Documentation/admin-guide/mm/ |
D | transhuge.rst | 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 143 madvise [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 | 199 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-v4.19/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-v4.19/tools/testing/selftests/x86/ |
D | protection_keys.c | 790 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() 1308 madvise(p1, PAGE_SIZE, MADV_DONTNEED); in get_pointer_to_instructions() 1334 madvise(p1, PAGE_SIZE, MADV_DONTNEED); in test_executing_on_unreadable_memory() 1363 madvise(p1, PAGE_SIZE, MADV_DONTNEED); in test_implicit_mprotect_exec_only_memory()
|
D | mpx-mini-test.c | 693 madvise(bounds_dir_ptr, size, MADV_NOHUGEPAGE); in process_specific_init() 1541 int ret = madvise((void *)ptr, PAGE_SIZE, MADV_NORMAL); in exhaust_vaddr_space()
|
/Linux-v4.19/mm/ |
D | Makefile | 53 obj-$(CONFIG_ADVISE_SYSCALLS) += madvise.o
|
D | Kconfig | 408 bool "madvise" 410 Enabling Transparent Hugepage madvise, will only provide a 412 madvise(MADV_HUGEPAGE) but it won't risk to increase the
|
D | madvise.c | 801 SYSCALL_DEFINE3(madvise, unsigned long, start, size_t, len_in, int, behavior) in SYSCALL_DEFINE3() argument
|
/Linux-v4.19/kernel/ |
D | sys_ni.c | 271 COND_SYSCALL(madvise);
|
/Linux-v4.19/tools/vm/ |
D | page-types.c | 1010 if (madvise(ptr, len, MADV_RANDOM)) in walk_file() 1028 if (madvise(ptr, len, MADV_SEQUENTIAL)) in walk_file()
|
/Linux-v4.19/arch/parisc/kernel/ |
D | syscall_table.S | 198 ENTRY_SAME(madvise)
|
/Linux-v4.19/arch/powerpc/include/asm/ |
D | systbl.h | 213 SYSCALL_SPU(madvise)
|
/Linux-v4.19/arch/s390/kernel/ |
D | compat_wrapper.c | 119 COMPAT_SYSCALL_WRAP3(madvise, unsigned long, start, size_t, len, int, behavior);
|
/Linux-v4.19/Documentation/vm/ |
D | hwpoison.rst | 113 * madvise(MADV_HWPOISON, ....) (as root) - Poison a page in the
|
/Linux-v4.19/arch/x86/entry/syscalls/ |
D | syscall_64.tbl | 39 28 common madvise __x64_sys_madvise
|
D | syscall_32.tbl | 233 219 i386 madvise sys_madvise __ia32_sys_madvise
|
/Linux-v4.19/tools/perf/arch/x86/entry/syscalls/ |
D | syscall_64.tbl | 39 28 common madvise __x64_sys_madvise
|
/Linux-v4.19/arch/arm/tools/ |
D | syscall.tbl | 237 220 common madvise sys_madvise
|
/Linux-v4.19/tools/perf/bench/ |
D | numa.c | 388 ret = madvise(buf, bytes, MADV_HUGEPAGE); in alloc_data() 395 ret = madvise(buf, bytes, MADV_NOHUGEPAGE); in alloc_data()
|
/Linux-v4.19/arch/s390/kernel/syscalls/ |
D | syscall.tbl | 230 219 common madvise sys_madvise compat_sys_madvise
|
/Linux-v4.19/tools/perf/arch/s390/entry/syscalls/ |
D | syscall.tbl | 230 219 common madvise sys_madvise compat_sys_madvise
|