| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/scudo/ |
| H A D | scudo_allocator_secondary.h | 58 return RoundUpTo(sizeof(Header), MinAlignment); in getHeaderSize() 82 ReservedSize = RoundUpTo(ReservedSize, PageSize); in Allocate() 99 uptr CommittedEnd = RoundUpTo(UserEnd, PageSize); in Allocate() 106 UserBeg = RoundUpTo(UserBeg, Alignment); in Allocate() 115 CommittedEnd = RoundUpTo(UserEnd, PageSize); in Allocate()
|
| H A D | scudo_allocator.h | 63 constexpr uptr RoundUpTo(uptr Size, uptr Boundary) { in RoundUpTo() function 69 return RoundUpTo(sizeof(PackedHeader), MinAlignment); in getHeaderSize()
|
| /freebsd-13.1/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() 226 : MaxMemory(RoundUpTo(M, kCacheLineSize)), in Allocator()
|
| H A D | xray_utils.cpp | 57 if (RoundUpTo(Offset, PageSize) != RoundUpTo(Offset + TotalBytes, PageSize)) { in WriteAll()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/dfsan/ |
| H A D | dfsan_interceptors.cpp | 60 uptr size_in_words = RoundUpTo(size_in_bytes, kWordSize) / kWordSize; in AllocateFromLocalPool() 166 dfsan_set_label(0, res, RoundUpTo(length, GetPageSizeCached())); in INTERCEPTOR() 180 dfsan_set_label(0, res, RoundUpTo(length, GetPageSizeCached())); in INTERCEPTOR() 191 dfsan_set_label(0, addr, RoundUpTo(length, GetPageSizeCached())); in INTERCEPTOR()
|
| H A D | dfsan_thread.cpp | 14 uptr size = RoundUpTo(sizeof(DFsanThread), PageSize); in Create() 64 uptr size = RoundUpTo(sizeof(DFsanThread), GetPageSizeCached()); in Destroy()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_fuchsia.cpp | 173 size = RoundUpTo(size, GetPageSize()); in DoAnonymousMmapOrDie() 219 init_size = RoundUpTo(init_size, GetPageSize()); in Init() 240 map_size = RoundUpTo(map_size, GetPageSize()); in DoMmapFixedOrDie() 280 size = RoundUpTo(size, GetPageSize()); in UnmapOrDieVmar() 348 addr = RoundUpTo(map_addr, alignment); in MmapAlignedOrDieOnFatalError() 387 uptr beg_aligned = RoundUpTo(beg, GetPageSize()); in ReleaseMemoryPagesToOS() 428 size_t map_size = RoundUpTo(max_len, GetPageSize()); in ReadFileToBuffer()
|
| H A D | sanitizer_posix.cpp | 45 size = RoundUpTo(size, GetPageSizeCached()); in MmapOrDie() 67 size = RoundUpTo(size, GetPageSizeCached()); in MmapOrDieOnFatalError() 104 size = RoundUpTo(size, GetPageSizeCached()); in MmapNoReserveOrDie() 116 size = RoundUpTo(size, GetPageSizeCached()); in MmapFixedImpl() 198 *buff_size = RoundUpTo(fsize, GetPageSizeCached()); in MapFileToMemory()
|
| H A D | sanitizer_linux_libcdep.cpp | 308 RoundUpTo(ThreadDescriptorSize() + kTcbHead, kTlsAlign); in TlsPreTcbSize() 484 const uptr tp = RoundUpTo(*addr + *size, align); in GetTls() 499 *addr = tp - RoundUpTo(*size, align); in GetTls() 927 const uptr shadow_size = RoundUpTo(shadow_size_bytes, granularity); in MapDynamicShadow() 933 const uptr shadow_start = RoundUpTo(map_start + left_padding, alignment); in MapDynamicShadow() 977 shadow_size = RoundUpTo(shadow_size, granularity); in MapDynamicShadowAndAliases() 990 const uptr right_start = RoundUpTo(map_start + left_padding, alignment); in MapDynamicShadowAndAliases()
|
| H A D | sanitizer_allocator_checks.h | 71 return RoundUpTo(size, page_size) < size; in CheckForPvallocOverflow()
|
| H A D | sanitizer_allocator.cpp | 197 size = RoundUpTo(size, low_level_alloc_min_alignment); in Allocate() 199 uptr size_to_allocate = RoundUpTo(size, GetPageSizeCached()); in Allocate()
|
| H A D | sanitizer_allocator_primary64.h | 391 return RoundUpTo(sizeof(RegionInfo) * kNumClassesRounded, in AdditionalSize() 428 RoundUpTo(n, 1ULL << packing_ratio_log) >> packing_ratio_log); in PackedCounterArray() 741 uptr new_mapped_free_array = RoundUpTo(needed_space, kFreeArrayMapSize); in EnsureFreeArraySpace() 794 RoundUpTo(total_user_bytes - region->mapped_user, kUserMapSize); in PopulateFreeArray() 812 RoundUpTo(total_meta_bytes - region->mapped_meta, kMetaMapSize) : 0; in PopulateFreeArray() 886 RoundUpTo(region->allocated_user, page_size) / page_size, memory_mapper, in MaybeReleaseToOS()
|
| H A D | sanitizer_stoptheworld_linux_libcdep.cpp | 564 uptr size_up = RoundUpTo(size, 8 / uptr_sz); in GetRegistersAndSP() 587 buffer->resize(size_up + RoundUpTo(regset_io.iov_len, uptr_sz) / uptr_sz); in GetRegistersAndSP() 600 buffer->resize(RoundUpTo(sizeof(regs_struct), uptr_sz) / uptr_sz); in GetRegistersAndSP()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/hwasan/ |
| H A D | hwasan_globals.cpp | 65 const char *desc = name + RoundUpTo(nhdr->n_namesz, 4); in HwasanGlobalsFor() 70 note = desc + RoundUpTo(nhdr->n_descsz, 4); in HwasanGlobalsFor()
|
| H A D | hwasan_dynamic_shadow.cpp | 41 return RoundUpTo(GetMaxVirtualAddress() >> kShadowScale, in PremapShadowSize() 62 const uptr shadow_size = RoundUpTo(shadow_size_bytes, granularity); in FindPremappedShadowStart()
|
| H A D | hwasan_poisoning.cpp | 24 uptr end = RoundUpTo(p + size, kShadowAlignment); in TagMemory()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/memprof/ |
| H A D | memprof_malloc_linux.cpp | 43 uptr size_in_words = RoundUpTo(size_in_bytes, kWordSize) / kWordSize; in AllocateFromLocalPool() 72 uptr aligned_addr = RoundUpTo(addr, alignment); in PosixMemalignFromLocalPool() 73 uptr aligned_size = RoundUpTo(size_in_bytes, kWordSize); in PosixMemalignFromLocalPool()
|
| H A D | memprof_thread.cpp | 78 uptr size = RoundUpTo(sizeof(MemprofThread), PageSize); in Create() 103 uptr size = RoundUpTo(sizeof(MemprofThread), GetPageSizeCached()); in Destroy()
|
| H A D | memprof_shadow_setup.cpp | 27 RoundUpTo(MEM_TO_SHADOW(addr + size), GetPageSizeCached()) - 1; in ProtectGap()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/asan/ |
| H A D | asan_malloc_linux.cpp | 42 uptr size_in_words = RoundUpTo(size_in_bytes, kWordSize) / kWordSize; in AllocateFromLocalPool() 71 uptr aligned_addr = RoundUpTo(addr, alignment); in PosixMemalignFromLocalPool() 72 uptr aligned_size = RoundUpTo(size_in_bytes, kWordSize); in PosixMemalignFromLocalPool()
|
| H A D | asan_premap_shadow.cpp | 29 return RoundUpTo(GetMaxVirtualAddress() >> SHADOW_SCALE, granularity); in PremapShadowSize()
|
| H A D | asan_poisoning.cpp | 184 uptr aligned_b = RoundUpTo(beg, SHADOW_GRANULARITY); in __asan_region_is_poisoned() 365 uptr c = RoundUpTo(Max(old_mid, new_mid), granularity); in __sanitizer_annotate_contiguous_container() 383 uptr b2 = RoundUpTo(new_mid, granularity); in __sanitizer_annotate_contiguous_container()
|
| H A D | asan_thread.cpp | 81 uptr size = RoundUpTo(sizeof(AsanThread), PageSize); in Create() 120 uptr size = RoundUpTo(sizeof(AsanThread), GetPageSizeCached()); in Destroy() 326 uptr tls_end_aligned = RoundUpTo(tls_end_, SHADOW_GRANULARITY); in ClearShadowForThreadStackAndTLS()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/msan/ |
| H A D | msan_thread.cpp | 13 uptr size = RoundUpTo(sizeof(MsanThread), PageSize); in Create() 63 uptr size = RoundUpTo(sizeof(MsanThread), GetPageSizeCached()); in Destroy()
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/safestack/ |
| H A D | safestack_util.h | 31 inline size_t RoundUpTo(size_t size, size_t boundary) { in RoundUpTo() function
|