/external/jemalloc/src/ |
D | pages.c | 200 # error No madvise(2) flag defined for purging unused dirty pages in pages_purge() 202 int err = madvise(addr, size, JEMALLOC_MADV_PURGE); in pages_purge() 221 return (madvise(addr, size, MADV_HUGEPAGE) != 0); in pages_huge() 235 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()
|
/external/libmojo/base/android/library_loader/ |
D | library_prefetcher_unittest.cc | 110 ASSERT_EQ(0, madvise(address, length, MADV_DONTNEED)); in TEST() 139 ASSERT_EQ(0, madvise(address, length, MADV_DONTNEED)); in TEST() 140 ASSERT_EQ(0, madvise(address2, length, MADV_DONTNEED)); in TEST()
|
/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 | 94 madvise(area2, pagesize, MADV_DONTNEED); in main() 152 madvise(area2, pagesize, MADV_DONTNEED); in main()
|
D | mmap.test | 51 syscall=$mmap,madvise,mlockall,mprotect,mremap,msync,munmap
|
D | mmap.c | 92 if (madvise(p, length3, MADV_NORMAL)) in main()
|
/external/strace/tests-mx32/ |
D | ioctl_uffdio.c | 94 madvise(area2, pagesize, MADV_DONTNEED); in main() 152 madvise(area2, pagesize, MADV_DONTNEED); in main()
|
D | mmap.test | 51 syscall=$mmap,madvise,mlockall,mprotect,mremap,msync,munmap
|
D | mmap.c | 92 if (madvise(p, length3, MADV_NORMAL)) in main()
|
/external/strace/tests-m32/ |
D | ioctl_uffdio.c | 94 madvise(area2, pagesize, MADV_DONTNEED); in main() 152 madvise(area2, pagesize, MADV_DONTNEED); in main()
|
D | mmap.test | 51 syscall=$mmap,madvise,mlockall,mprotect,mremap,msync,munmap
|
D | mmap.c | 92 if (madvise(p, length3, 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 | madvise06.c | 100 TEST(madvise(dst[0], pg_sz, MADV_WILLNEED)); in test_advice_willneed()
|
D | madvise01.c | 106 TEST(madvise(*(tc->addr), st.st_size, tc->advice)); in verify_madvise()
|
D | madvise02.c | 161 TEST(madvise(*(tc->addr), st.st_size, tc->advice)); in advice_test()
|
/external/fio/os/ |
D | os-hpux.h | 34 #define posix_madvise(ptr, sz, hint) madvise((ptr), (sz), (hint))
|
D | os-solaris.h | 37 #define posix_madvise madvise
|
/external/ltp/testcases/kernel/mem/thp/ |
D | thp03.c | 94 if (madvise(p + hugepage_size, page_size, MADV_MERGEABLE) == -1) { in thp_test()
|
/external/ltp/testcases/kernel/mem/ksm/ |
D | ksm05.c | 103 if (madvise(ptr, ps, MADV_MERGEABLE) < 0) in main()
|
/external/ltp/testcases/kernel/syscalls/ |
D | .gitignore | 505 /madvise/madvise01 506 /madvise/madvise02 507 /madvise/madvise03 508 /madvise/madvise04 509 /madvise/madvise05 510 /madvise/madvise06
|
/external/jemalloc/ |
D | configure.ac | 1620 dnl Check for madvise(2). 1622 JE_COMPILABLE([madvise(2)], [ 1625 madvise((void *)0, 0, 0); 1630 dnl Check for madvise(..., MADV_FREE). 1631 JE_COMPILABLE([madvise(..., MADV_FREE)], [ 1634 madvise((void *)0, 0, MADV_FREE); 1640 dnl Check for madvise(..., MADV_DONTNEED). 1641 JE_COMPILABLE([madvise(..., MADV_DONTNEED)], [ 1644 madvise((void *)0, 0, MADV_DONTNEED); 1650 dnl Check for madvise(..., MADV_[NO]HUGEPAGE). [all …]
|
/external/ltp/testcases/kernel/syscalls/mmap/ |
D | mmap10.c | 138 if (madvise(x, SIZE + SIZE - ps, MADV_MERGEABLE) == -1) in mmapzero()
|