/external/jemalloc_new/src/ |
D | pages.c | 296 return (madvise(addr, size, in pages_purge_lazy() 305 return (madvise(addr, size, MADV_DONTNEED) != 0); in pages_purge_lazy() 322 return (madvise(addr, size, MADV_DONTNEED) != 0); in pages_purge_forced() 338 return (madvise(addr, size, MADV_HUGEPAGE) != 0); in pages_huge_impl() 362 return (madvise(addr, size, MADV_NOHUGEPAGE) != 0); in pages_nohuge_impl() 383 return madvise(addr, size, MADV_DONTDUMP) != 0; in pages_dontdump() 394 return madvise(addr, size, MADV_DODUMP) != 0; in pages_dodump()
|
/external/jemalloc/src/ |
D | pages.c | 196 # error No madvise(2) flag defined for purging unused dirty pages in pages_purge() 198 int err = madvise(addr, size, JEMALLOC_MADV_PURGE); in pages_purge() 217 return (madvise(addr, size, MADV_HUGEPAGE) != 0); in pages_huge() 231 return (madvise(addr, size, MADV_NOHUGEPAGE) != 0); in pages_nohuge()
|
/external/linux-kselftest/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 | 99 madvise(p, size, MADV_HUGEPAGE); in main() 101 madvise(p, size, MADV_NOHUGEPAGE); in main()
|
/external/v8/src/base/platform/ |
D | platform-posix.cc | 73 extern "C" int madvise(caddr_t, size_t, int); 75 extern int madvise(caddr_t, size_t, int); 153 int ret = madvise(address, size, MADV_FREE_REUSABLE); in ReclaimInaccessibleMemory() 155 int ret = madvise(reinterpret_cast<caddr_t>(address), size, MADV_FREE); in ReclaimInaccessibleMemory() 157 int ret = madvise(address, size, MADV_FREE); in ReclaimInaccessibleMemory() 166 ret = madvise(reinterpret_cast<caddr_t>(address), size, MADV_DONTNEED); in ReclaimInaccessibleMemory() 168 ret = madvise(address, size, MADV_DONTNEED); in ReclaimInaccessibleMemory() 369 madvise(address, size, MADV_FREE_REUSE); in SetPermissions()
|
/external/jemalloc_new/include/jemalloc/internal/ |
D | jemalloc_internal_defs.h.in | 262 /* Defined if madvise(2) is available. */ 267 * arguments to madvise(2). 274 * madvise(..., MADV_FREE) : This marks pages as being unused, such that they 276 * madvise(..., MADV_DONTNEED) : If JEMALLOC_PURGE_MADVISE_DONTNEED_ZEROS is 288 /* Defined if madvise(2) is available but MADV_FREE is not (x86 Linux only). */ 292 * Defined if MADV_DO[NT]DUMP is supported as an argument to madvise. 298 * MADV_[NO]HUGEPAGE arguments to madvise(2), and THP support is enabled.
|
/external/compiler-rt/lib/sanitizer_common/ |
D | sanitizer_posix_libcdep.cc | 58 madvise((void*)addr, size, MADV_DONTNEED); in FlushUnneededShadowMemory() 63 madvise((void *)addr, size, MADV_NOHUGEPAGE); in NoHugePagesInRegion() 69 madvise((void *)addr, length, MADV_DONTDUMP); in DontDumpShadowMemory()
|
/external/libdrm/freedreno/ |
D | freedreno_bo_cache.c | 177 if (bo->funcs->madvise(bo, TRUE) <= 0) { in fd_bo_cache_alloc() 202 bo->funcs->madvise(bo, FALSE); in fd_bo_cache_free()
|
/external/strace/tests-mx32/ |
D | ioctl_uffdio.c | 102 madvise(area2, pagesize, MADV_DONTNEED); in main() 160 madvise(area2, pagesize, MADV_DONTNEED); in main()
|
D | mmap.test | 57 syscall=$mmap,madvise,mlockall,mprotect,mremap,msync,munmap
|
D | madvise.c | 54 rc = madvise(addr, length, MADV_NORMAL); in main()
|
/external/strace/tests-m32/ |
D | ioctl_uffdio.c | 102 madvise(area2, pagesize, MADV_DONTNEED); in main() 160 madvise(area2, pagesize, MADV_DONTNEED); in main()
|
D | mmap.test | 57 syscall=$mmap,madvise,mlockall,mprotect,mremap,msync,munmap
|
D | madvise.c | 54 rc = madvise(addr, length, MADV_NORMAL); in main()
|
/external/strace/tests/ |
D | ioctl_uffdio.c | 102 madvise(area2, pagesize, MADV_DONTNEED); in main() 160 madvise(area2, pagesize, MADV_DONTNEED); in main()
|
D | mmap.test | 57 syscall=$mmap,madvise,mlockall,mprotect,mremap,msync,munmap
|
D | madvise.c | 54 rc = madvise(addr, length, MADV_NORMAL); in main()
|
/external/jemalloc/include/jemalloc/internal/ |
D | jemalloc_internal_defs.h.in | 253 /* Defined if madvise(2) is available. */ 259 * madvise(..., MADV_FREE) : This marks pages as being unused, such that they 261 * madvise(..., MADV_DONTNEED) : This immediately discards pages, such that 270 * arguments to madvise(2).
|
/external/ltp/testcases/kernel/syscalls/madvise/ |
D | madvise05.c | 43 TEST(madvise(p, ALLOC_SIZE, MADV_WILLNEED)); in verify_madvise()
|
D | madvise07.c | 67 if (madvise(mem, msize, MADV_HWPOISON) == -1) { in run_child()
|
/external/pdfium/third_party/base/allocator/partition_allocator/ |
D | page_allocator.cc | 220 int ret = madvise(address, length, MADV_FREE); in DecommitSystemPages() 225 ret = madvise(address, length, MADV_DONTNEED); in DecommitSystemPages()
|
/external/ltp/testcases/kernel/mem/thp/ |
D | thp03.c | 60 if (madvise(p + hugepage_size, page_size, MADV_MERGEABLE) == -1) { in thp_test()
|
/external/ltp/testcases/kernel/security/dirtyc0w/ |
D | dirtyc0w_child.c | 54 c += madvise(map, 100, MADV_DONTNEED); in madvise_thread()
|
/external/ltp/testcases/kernel/mem/ksm/ |
D | ksm05.c | 79 if (madvise(ptr, ps, MADV_MERGEABLE) < 0) in test_ksm()
|
/external/jemalloc_new/ |
D | configure.ac | 1824 dnl Check for madvise(2). 1826 JE_COMPILABLE([madvise(2)], [ 1829 madvise((void *)0, 0, 0); 1834 dnl Check for madvise(..., MADV_FREE). 1835 JE_COMPILABLE([madvise(..., MADV_FREE)], [ 1838 madvise((void *)0, 0, MADV_FREE); 1853 dnl Check for madvise(..., MADV_DONTNEED). 1854 JE_COMPILABLE([madvise(..., MADV_DONTNEED)], [ 1857 madvise((void *)0, 0, MADV_DONTNEED); 1863 dnl Check for madvise(..., MADV_DO[NT]DUMP). [all …]
|