/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_posix.cpp | 47 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 D | sanitizer_posix_libcdep.cpp | 59 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 D | sanitizer_procmaps_bsd.cpp | 42 cb(0, InfoProc->ki_rssize * GetPageSizeCached(), false, stats); in GetMemoryProfile() 56 cb(0, InfoProc->p_vm_rssize * GetPageSizeCached(), false, stats);
|
H A D | sanitizer_dense_map.h | 521 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 D | sanitizer_symbolizer_report.cpp | 200 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 D | sanitizer_file.cpp | 136 uptr PageSize = GetPageSizeCached(); in ReadFileToBuffer() 179 uptr PageSize = GetPageSizeCached(); in ReadFileToVector()
|
H A D | sanitizer_stacktrace_sparc.cpp | 32 const uptr kPageSize = GetPageSizeCached(); in UnwindFast()
|
H A D | sanitizer_allocator_report.cpp | 71 SanitizerToolName, size, GetPageSizeCached()); in ReportPvallocOverflow()
|
H A D | sanitizer_unwind_linux_libcdep.cpp | 82 const uptr kPageSize = GetPageSizeCached(); in Unwind_Trace()
|
H A D | sanitizer_allocator_primary64.h | 393 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 D | memprof_shadow_setup.cpp | 25 uptr GapShadowBeg = RoundDownTo(MEM_TO_SHADOW(addr), GetPageSizeCached()); in ProtectGap() 27 RoundUpTo(MEM_TO_SHADOW(addr + size), GetPageSizeCached()) - 1; in ProtectGap()
|
H A D | memprof_thread.cpp | 77 uptr PageSize = GetPageSizeCached(); in Create() 102 uptr size = RoundUpTo(sizeof(MemprofThread), GetPageSizeCached()); in Destroy()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/xray/ |
H A D | xray_allocator.h | 40 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 D | xray_interface.cpp | 313 : GetPageSizeCached(); in controlPatching() 364 : GetPageSizeCached(); in mprotectAndPatchFunction()
|
H A D | xray_utils.cpp | 56 : GetPageSizeCached(); in WriteAll()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/ |
H A D | asan_shadow_setup.cpp | 28 uptr GapShadowBeg = RoundDownTo(MEM_TO_SHADOW(addr), GetPageSizeCached()); in ProtectGap() 30 RoundUpTo(MEM_TO_SHADOW(addr + size), GetPageSizeCached()) - 1; in ProtectGap()
|
H A D | asan_poisoning.h | 57 uptr page_size = GetPageSizeCached(); in FastPoisonShadow()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/ |
H A D | dfsan_interceptors.cpp | 141 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 D | dfsan_thread.cpp | 12 uptr PageSize = GetPageSizeCached(); in Create() 62 uptr size = RoundUpTo(sizeof(DFsanThread), GetPageSizeCached()); in Destroy()
|
H A D | dfsan_allocator.cpp | 243 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 D | msan_thread.cpp | 12 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 D | tsan_platform_mac.cpp | 149 *res = resident_pages * GetPageSizeCached(); in RegionMemUsage() 150 *dirty = dirty_pages * GetPageSizeCached(); in RegionMemUsage()
|
H A D | tsan_mman.cpp | 40 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 D | tsan_malloc_mac.cpp | 68 return InternalAlloc(size, nullptr, GetPageSizeCached()); \
|
/freebsd/contrib/llvm-project/compiler-rt/lib/lsan/ |
H A D | lsan_allocator.cpp | 244 Allocate(stack, size, GetPageSizeCached(), kAlwaysClearMemory)); in lsan_valloc() 248 uptr PageSize = GetPageSizeCached(); in lsan_pvalloc()
|