/external/pdfium/third_party/base/allocator/partition_allocator/ |
D | page_allocator_internals_posix.h | 185 madvise(address, length, MADV_FREE_REUSE); in RecommitSystemPagesInternal() 196 int ret = madvise(address, length, MADV_FREE_REUSABLE); in DiscardSystemPagesInternal() 199 ret = madvise(address, length, MADV_DONTNEED); in DiscardSystemPagesInternal() 209 CHECK(!madvise(address, length, MADV_DONTNEED)); in DiscardSystemPagesInternal()
|
/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 | 100 madvise(p, size, MADV_HUGEPAGE); in main() 102 madvise(p, size, MADV_NOHUGEPAGE); in main()
|
/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/linux-kselftest/tools/testing/selftests/powerpc/tm/ |
D | tm-signal-context-force-tm.c | 68 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()
|
/external/v8/src/base/platform/ |
D | platform-posix.cc | 74 extern "C" int madvise(caddr_t, size_t, int); 76 extern int madvise(caddr_t, size_t, int); 431 madvise(address, size, MADV_FREE_REUSE); in SetPermissions() 444 int ret = madvise(address, size, MADV_FREE_REUSABLE); in DiscardSystemPages() 446 int ret = madvise(reinterpret_cast<caddr_t>(address), size, MADV_FREE); in DiscardSystemPages() 448 int ret = madvise(address, size, MADV_FREE); in DiscardSystemPages() 457 ret = madvise(reinterpret_cast<caddr_t>(address), size, MADV_DONTNEED); in DiscardSystemPages() 459 ret = madvise(address, size, MADV_DONTNEED); in DiscardSystemPages()
|
/external/python/cpython3/Lib/test/ |
D | test_mmap.py | 749 m.madvise(mmap.MADV_NORMAL, size) 751 m.madvise(mmap.MADV_NORMAL, -1) 753 m.madvise(mmap.MADV_NORMAL, 0, -1) 755 m.madvise(mmap.MADV_NORMAL, PAGESIZE, sys.maxsize) 756 self.assertEqual(m.madvise(mmap.MADV_NORMAL), None) 757 self.assertEqual(m.madvise(mmap.MADV_NORMAL, PAGESIZE), None) 758 self.assertEqual(m.madvise(mmap.MADV_NORMAL, PAGESIZE, size), None) 759 self.assertEqual(m.madvise(mmap.MADV_NORMAL, 0, 2), None) 760 self.assertEqual(m.madvise(mmap.MADV_NORMAL, 0, size), None)
|
/external/mesa3d/src/freedreno/drm/ |
D | freedreno_bo_cache.c | 175 if (bo->funcs->madvise(bo, true) <= 0) { in fd_bo_cache_alloc() 200 bo->funcs->madvise(bo, false); in fd_bo_cache_free()
|
/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/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/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
|
/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
|
/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
|
/external/crosvm/seccomp/x86_64/ |
D | null_audio_device.policy | 7 madvise: 1
|
D | cras_audio_device.policy | 7 madvise: 1
|
/external/crosvm/seccomp/arm/ |
D | null_audio_device.policy | 7 madvise: 1
|
D | cras_audio_device.policy | 7 madvise: 1
|
/external/ltp/testcases/kernel/syscalls/madvise/ |
D | madvise05.c | 34 TEST(madvise(p, ALLOC_SIZE, MADV_WILLNEED)); in verify_madvise()
|
/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/mem/thp/ |
D | thp03.c | 60 if (madvise(p + hugepage_size, page_size, MADV_MERGEABLE) == -1) { in thp_test()
|