Home
last modified time | relevance | path

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

1234

/external/jemalloc/src/
Dpages.c200 # 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/
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()
/external/libmojo/base/android/library_loader/
Dlibrary_prefetcher_unittest.cc110 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/
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.c94 madvise(area2, pagesize, MADV_DONTNEED); in main()
152 madvise(area2, pagesize, MADV_DONTNEED); in main()
Dmmap.test51 syscall=$mmap,madvise,mlockall,mprotect,mremap,msync,munmap
Dmmap.c92 if (madvise(p, length3, MADV_NORMAL)) in main()
/external/strace/tests-mx32/
Dioctl_uffdio.c94 madvise(area2, pagesize, MADV_DONTNEED); in main()
152 madvise(area2, pagesize, MADV_DONTNEED); in main()
Dmmap.test51 syscall=$mmap,madvise,mlockall,mprotect,mremap,msync,munmap
Dmmap.c92 if (madvise(p, length3, MADV_NORMAL)) in main()
/external/strace/tests-m32/
Dioctl_uffdio.c94 madvise(area2, pagesize, MADV_DONTNEED); in main()
152 madvise(area2, pagesize, MADV_DONTNEED); in main()
Dmmap.test51 syscall=$mmap,madvise,mlockall,mprotect,mremap,msync,munmap
Dmmap.c92 if (madvise(p, length3, 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()
Dmadvise06.c100 TEST(madvise(dst[0], pg_sz, MADV_WILLNEED)); in test_advice_willneed()
Dmadvise01.c106 TEST(madvise(*(tc->addr), st.st_size, tc->advice)); in verify_madvise()
Dmadvise02.c161 TEST(madvise(*(tc->addr), st.st_size, tc->advice)); in advice_test()
/external/fio/os/
Dos-hpux.h34 #define posix_madvise(ptr, sz, hint) madvise((ptr), (sz), (hint))
Dos-solaris.h37 #define posix_madvise madvise
/external/ltp/testcases/kernel/mem/thp/
Dthp03.c94 if (madvise(p + hugepage_size, page_size, MADV_MERGEABLE) == -1) { in thp_test()
/external/ltp/testcases/kernel/mem/ksm/
Dksm05.c103 if (madvise(ptr, ps, MADV_MERGEABLE) < 0) in main()
/external/ltp/testcases/kernel/syscalls/
D.gitignore505 /madvise/madvise01
506 /madvise/madvise02
507 /madvise/madvise03
508 /madvise/madvise04
509 /madvise/madvise05
510 /madvise/madvise06
/external/jemalloc/
Dconfigure.ac1620 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/
Dmmap10.c138 if (madvise(x, SIZE + SIZE - ps, MADV_MERGEABLE) == -1) in mmapzero()

1234