Home
last modified time | relevance | path

Searched refs:GetPageSizeCached (Results 1 – 25 of 62) sorted by relevance

123

/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_posix.cpp47 size = RoundUpTo(size, GetPageSizeCached()); in MmapOrDie()
67 size = RoundUpTo(size, GetPageSizeCached()); in MmapOrDieOnFatalError()
92 map_size = RoundUpTo(map_size, GetPageSizeCached()); in MmapAlignedOrDieOnFatalError()
103 end = RoundUpTo(end, GetPageSizeCached()); in MmapAlignedOrDieOnFatalError()
112 size = RoundUpTo(size, GetPageSizeCached()); in MmapNoReserveOrDie()
124 size = RoundUpTo(size, GetPageSizeCached()); in MmapFixedImpl()
125 fixed_addr = RoundDownTo(fixed_addr, GetPageSizeCached()); in MmapFixedImpl()
210 *buff_size = RoundUpTo(fsize, GetPageSizeCached()); in MapFileToMemory()
H A Dsanitizer_posix_libcdep.cpp59 uptr page_size = GetPageSizeCached(); in ReleaseMemoryPagesToOS()
253 bool IsStackAccess = addr + GetPageSizeCached() > sp && addr < sp + 0xFFFF; in IsStackOverflow()
292 uptr page_size = GetPageSizeCached(); in IsAccessibleMemoryRange()
323 size = RoundUpTo(size, GetPageSizeCached()); in MmapFixed()
324 fixed_addr = RoundDownTo(fixed_addr, GetPageSizeCached()); in MmapFixed()
H A Dsanitizer_procmaps_bsd.cpp42 cb(0, InfoProc->ki_rssize * GetPageSizeCached(), false, stats); in GetMemoryProfile()
56 cb(0, InfoProc->p_vm_rssize * GetPageSizeCached(), false, stats);
H A Dsanitizer_dense_map.h521 return RoundUpTo(getNumBuckets() * sizeof(BucketT), GetPageSizeCached()); in getMemorySize()
682 if (Size * 2 <= GetPageSizeCached()) { in allocateBuckets()
684 unsigned Log2 = MostSignificantSetBitIndex(GetPageSizeCached() / Size); in allocateBuckets()
688 CHECK_GT(Size * 2, GetPageSizeCached()); in allocateBuckets()
695 return MmapOrDie(RoundUpTo(Size, GetPageSizeCached()), "DenseMap"); in allocate_buffer()
699 UnmapOrDie(Ptr, RoundUpTo(Size, GetPageSizeCached())); in deallocate_buffer()
H A Dsanitizer_symbolizer_report.cpp200 if (!common_flags()->dump_instruction_bytes || (pc < GetPageSizeCached())) in MaybeDumpInstructionBytes()
253 if (sig.pc < GetPageSizeCached()) in ReportDeadlySignalImpl()
265 else if (sig.addr < GetPageSizeCached()) in ReportDeadlySignalImpl()
H A Dsanitizer_file.cpp136 uptr PageSize = GetPageSizeCached(); in ReadFileToBuffer()
179 uptr PageSize = GetPageSizeCached(); in ReadFileToVector()
H A Dsanitizer_stacktrace_sparc.cpp32 const uptr kPageSize = GetPageSizeCached(); in UnwindFast()
H A Dsanitizer_allocator_report.cpp71 SanitizerToolName, size, GetPageSizeCached()); in ReportPvallocOverflow()
H A Dsanitizer_unwind_linux_libcdep.cpp82 const uptr kPageSize = GetPageSizeCached(); in Unwind_Trace()
H A Dsanitizer_allocator_primary64.h393 GetPageSizeCached()); in AdditionalSize()
475 page_size_scaled_log(Log2(GetPageSizeCached() >> kCompactPtrScale)) {} in FreePagesRangeTracker()
521 const uptr page_size = GetPageSizeCached(); in ReleaseFreeMemoryToOS()
866 const uptr page_size = GetPageSizeCached(); in MaybeReleaseToOS()
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_shadow_setup.cpp25 uptr GapShadowBeg = RoundDownTo(MEM_TO_SHADOW(addr), GetPageSizeCached()); in ProtectGap()
27 RoundUpTo(MEM_TO_SHADOW(addr + size), GetPageSizeCached()) - 1; in ProtectGap()
H A Dmemprof_thread.cpp77 uptr PageSize = GetPageSizeCached(); in Create()
102 uptr size = RoundUpTo(sizeof(MemprofThread), GetPageSizeCached()); in Destroy()
/freebsd/contrib/llvm-project/compiler-rt/lib/xray/
H A Dxray_allocator.h40 uptr RoundedSize = RoundUpTo(sizeof(T), GetPageSizeCached()); in allocate()
80 uptr RoundedSize = RoundUpTo(sizeof(T), GetPageSizeCached()); in deallocate()
91 uptr RoundedSize = RoundUpTo(S * sizeof(T), GetPageSizeCached()); in allocateBuffer()
129 uptr RoundedSize = RoundUpTo(S * sizeof(T), GetPageSizeCached()); in deallocateBuffer()
H A Dxray_interface.cpp313 : GetPageSizeCached(); in controlPatching()
364 : GetPageSizeCached(); in mprotectAndPatchFunction()
H A Dxray_utils.cpp56 : GetPageSizeCached(); in WriteAll()
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_shadow_setup.cpp28 uptr GapShadowBeg = RoundDownTo(MEM_TO_SHADOW(addr), GetPageSizeCached()); in ProtectGap()
30 RoundUpTo(MEM_TO_SHADOW(addr + size), GetPageSizeCached()) - 1; in ProtectGap()
H A Dasan_poisoning.h57 uptr page_size = GetPageSizeCached(); in FastPoisonShadow()
/freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/
H A Ddfsan_interceptors.cpp141 dfsan_set_label(0, res, RoundUpTo(length, GetPageSizeCached())); in INTERCEPTOR()
155 dfsan_set_label(0, res, RoundUpTo(length, GetPageSizeCached())); in INTERCEPTOR()
166 dfsan_set_label(0, addr, RoundUpTo(length, GetPageSizeCached())); in INTERCEPTOR()
H A Ddfsan_thread.cpp12 uptr PageSize = GetPageSizeCached(); in Create()
62 uptr size = RoundUpTo(sizeof(DFsanThread), GetPageSizeCached()); in Destroy()
H A Ddfsan_allocator.cpp243 DFsanAllocate(size, GetPageSizeCached(), false /*zeroise*/)); in dfsan_valloc()
247 uptr PageSize = GetPageSizeCached(); in dfsan_pvalloc()
/freebsd/contrib/llvm-project/compiler-rt/lib/msan/
H A Dmsan_thread.cpp12 uptr PageSize = GetPageSizeCached(); in Create()
64 uptr size = RoundUpTo(sizeof(MsanThread), GetPageSizeCached()); in Destroy()
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_platform_mac.cpp149 *res = resident_pages * GetPageSizeCached(); in RegionMemUsage()
150 *dirty = dirty_pages * GetPageSizeCached(); in RegionMemUsage()
H A Dtsan_mman.cpp40 const uptr kPageSize = GetPageSizeCached() * kMetaRatio; in OnUnmap()
351 return SetErrnoOnNull(user_alloc_internal(thr, pc, sz, GetPageSizeCached())); in user_valloc()
355 uptr PageSize = GetPageSizeCached(); in user_pvalloc()
H A Dtsan_malloc_mac.cpp68 return InternalAlloc(size, nullptr, GetPageSizeCached()); \
/freebsd/contrib/llvm-project/compiler-rt/lib/lsan/
H A Dlsan_allocator.cpp244 Allocate(stack, size, GetPageSizeCached(), kAlwaysClearMemory)); in lsan_valloc()
248 uptr PageSize = GetPageSizeCached(); in lsan_pvalloc()

123