Home
last modified time | relevance | path

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

12345

/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.c99 madvise(p, size, MADV_HUGEPAGE); in main()
101 madvise(p, size, MADV_NOHUGEPAGE); in main()
/external/v8/src/base/platform/
Dplatform-posix.cc73 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/
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/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/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/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
Dmadvise.c54 rc = madvise(addr, length, MADV_NORMAL); in main()
/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
Dmadvise.c54 rc = madvise(addr, length, MADV_NORMAL); in main()
/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
Dmadvise.c54 rc = madvise(addr, length, MADV_NORMAL); in main()
/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/syscalls/madvise/
Dmadvise05.c43 TEST(madvise(p, ALLOC_SIZE, MADV_WILLNEED)); in verify_madvise()
Dmadvise07.c67 if (madvise(mem, msize, MADV_HWPOISON) == -1) { in run_child()
/external/pdfium/third_party/base/allocator/partition_allocator/
Dpage_allocator.cc220 int ret = madvise(address, length, MADV_FREE); in DecommitSystemPages()
225 ret = madvise(address, length, MADV_DONTNEED); in DecommitSystemPages()
/external/ltp/testcases/kernel/mem/thp/
Dthp03.c60 if (madvise(p + hugepage_size, page_size, MADV_MERGEABLE) == -1) { in thp_test()
/external/ltp/testcases/kernel/security/dirtyc0w/
Ddirtyc0w_child.c54 c += madvise(map, 100, MADV_DONTNEED); in madvise_thread()
/external/ltp/testcases/kernel/mem/ksm/
Dksm05.c79 if (madvise(ptr, ps, MADV_MERGEABLE) < 0) in test_ksm()
/external/jemalloc_new/
Dconfigure.ac1824 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 …]

12345