Home
last modified time | relevance | path

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

1234567

/external/pdfium/third_party/base/allocator/partition_allocator/
Dpage_allocator_internals_posix.h185 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/
Dpages.c296 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/
Dpages.c196 # 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/
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()
/external/jemalloc_new/include/jemalloc/internal/
Djemalloc_internal_defs.h.in262 /* 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/
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()
/external/v8/src/base/platform/
Dplatform-posix.cc74 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/
Dtest_mmap.py749 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/
Dfreedreno_bo_cache.c175 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/
Dfreedreno_bo_cache.c177 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/
Dsanitizer_posix_libcdep.cc58 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/
Dioctl_uffdio.c102 madvise(area2, pagesize, MADV_DONTNEED); in main()
160 madvise(area2, pagesize, MADV_DONTNEED); in main()
Dmmap.test57 syscall=$mmap,madvise,mlockall,mprotect,mremap,msync,munmap
/external/strace/tests-m32/
Dioctl_uffdio.c102 madvise(area2, pagesize, MADV_DONTNEED); in main()
160 madvise(area2, pagesize, MADV_DONTNEED); in main()
Dmmap.test57 syscall=$mmap,madvise,mlockall,mprotect,mremap,msync,munmap
/external/strace/tests-mx32/
Dioctl_uffdio.c102 madvise(area2, pagesize, MADV_DONTNEED); in main()
160 madvise(area2, pagesize, MADV_DONTNEED); in main()
Dmmap.test57 syscall=$mmap,madvise,mlockall,mprotect,mremap,msync,munmap
/external/crosvm/seccomp/x86_64/
Dnull_audio_device.policy7 madvise: 1
Dcras_audio_device.policy7 madvise: 1
/external/crosvm/seccomp/arm/
Dnull_audio_device.policy7 madvise: 1
Dcras_audio_device.policy7 madvise: 1
/external/ltp/testcases/kernel/syscalls/madvise/
Dmadvise05.c34 TEST(madvise(p, ALLOC_SIZE, MADV_WILLNEED)); in verify_madvise()
/external/jemalloc/include/jemalloc/internal/
Djemalloc_internal_defs.h.in253 /* 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/
Dthp03.c60 if (madvise(p + hugepage_size, page_size, MADV_MERGEABLE) == -1) { in thp_test()

1234567