| /freebsd/contrib/llvm-project/compiler-rt/lib/memprof/ |
| H A D | memprof_rawprofile.cpp | 233 const u64 NumSegmentBytes = RoundUpTo(SegmentSizeBytes(Modules), 8); in SerializeToRawProfile() 240 const u64 NumMIBInfoBytes = RoundUpTo( in SerializeToRawProfile() 252 RoundUpTo(TotalAccessHistogramEntries * sizeof(uint64_t), 8); in SerializeToRawProfile() 254 const u64 NumStackBytes = RoundUpTo(StackSizeBytes(StackIds), 8); in SerializeToRawProfile() 260 RoundUpTo(sizeof(Header) + NumSegmentBytes + NumStackBytes + in SerializeToRawProfile()
|
| H A D | memprof_thread.cpp | 75 uptr size = RoundUpTo(sizeof(MemprofThread), PageSize); in Create() 99 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()
|
| H A D | memprof_allocator.cpp | 263 uptr page_beg = RoundUpTo(shadow_beg, page_size); in ClearShadow() 328 RoundUpTo(user_size, HISTOGRAM_GRANULARITY) / HISTOGRAM_GRANULARITY; in CreateNewMIBWithHistogram() 431 uptr rounded_size = RoundUpTo(size, alignment); in Allocate() 469 user_beg = RoundUpTo(user_beg, alignment); in Allocate() 708 size = size ? RoundUpTo(size, PageSize) : PageSize; in memprof_pvalloc()
|
| /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() 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/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() 210 *buff_size = RoundUpTo(fsize, GetPageSizeCached()); in MapFileToMemory()
|
| H A D | sanitizer_linux_libcdep.cpp | 393 RoundUpTo(ThreadDescriptorSize() + kTcbHead, kTlsAlign); in TlsPreTcbSize() 607 const uptr tp = RoundUpTo(*addr + *size, align); in GetTls() 622 *addr = tp - RoundUpTo(*size, align); in GetTls() 760 off += sizeof(*nhdr) + RoundUpTo(nhdr->n_namesz, 4) + in AddModuleSegments() 761 RoundUpTo(nhdr->n_descsz, 4); in AddModuleSegments() 1013 const uptr shadow_size = RoundUpTo(shadow_size_bytes, granularity); in MapDynamicShadow() 1019 const uptr shadow_start = RoundUpTo(map_start + left_padding, alignment); in MapDynamicShadow() 1063 shadow_size = RoundUpTo(shadow_size, granularity); in MapDynamicShadowAndAliases() 1076 const uptr right_start = RoundUpTo(map_start + left_padding, alignment); in MapDynamicShadowAndAliases()
|
| H A D | sanitizer_fuchsia.cpp | 187 size = RoundUpTo(size, GetPageSize()); in DoAnonymousMmapOrDie() 231 init_size = RoundUpTo(init_size, GetPageSize()); in Init() 252 map_size = RoundUpTo(map_size, GetPageSize()); in DoMmapFixedOrDie() 294 size = RoundUpTo(size, GetPageSize()); in UnmapOrDieVmar() 380 addr = RoundUpTo(map_addr, alignment); in MmapAlignedOrDieOnFatalError() 419 uptr beg_aligned = RoundUpTo(beg, GetPageSize()); in ReleaseMemoryPagesToOS()
|
| H A D | sanitizer_allocator.cpp | 152 size = RoundUpTo(size, low_level_alloc_min_alignment); in Allocate() 154 uptr size_to_allocate = RoundUpTo( in Allocate()
|
| H A D | sanitizer_allocator_checks.h | 71 return RoundUpTo(size, page_size) < size; in CheckForPvallocOverflow()
|
| H A D | sanitizer_allocator_primary64.h | 393 return RoundUpTo(sizeof(RegionInfo) * kNumClassesRounded, in AdditionalSize() 430 RoundUpTo(n, 1ULL << packing_ratio_log) >> packing_ratio_log); in PackedCounterArray() 745 uptr new_mapped_free_array = RoundUpTo(needed_space, kFreeArrayMapSize); in EnsureFreeArraySpace() 799 RoundUpTo(total_user_bytes - region->mapped_user, kUserMapSize); in PopulateFreeArray() 817 RoundUpTo(total_meta_bytes - region->mapped_meta, kMetaMapSize) : 0; in PopulateFreeArray() 891 RoundUpTo(region->allocated_user, page_size) / page_size, memory_mapper, in MaybeReleaseToOS()
|
| H A D | sanitizer_stoptheworld_linux_libcdep.cpp | 578 uptr size_up = RoundUpTo(size, 8 / uptr_sz); in GetRegistersAndSP() 601 buffer->resize(size_up + RoundUpTo(regset_io.iov_len, uptr_sz) / uptr_sz); in GetRegistersAndSP() 614 buffer->resize(RoundUpTo(sizeof(regs_struct), uptr_sz) / uptr_sz); in GetRegistersAndSP()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/ |
| H A D | hwasan_globals.cpp | 67 const char *desc = name + RoundUpTo(nhdr->n_namesz, 4); in HwasanGlobalsFor() 72 note = desc + RoundUpTo(nhdr->n_descsz, 4); in HwasanGlobalsFor()
|
| H A D | hwasan_dynamic_shadow.cpp | 47 return RoundUpTo(GetMaxVirtualAddress() >> kShadowScale, kMaxGranularity); in PremapShadowSize() 67 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/contrib/llvm-project/compiler-rt/lib/asan/ |
| H A D | asan_poisoning.cpp | 250 uptr aligned_b = RoundUpTo(beg, ASAN_SHADOW_GRANULARITY); in __asan_region_is_poisoned() 459 uptr beg_up = RoundUpTo(storage_beg, granularity); in FixUnalignedStorage() 506 uptr c = RoundUpTo(Max(old_end, new_end), granularity); in __sanitizer_annotate_contiguous_container() 527 uptr b2 = RoundUpTo(new_end, granularity); in __sanitizer_annotate_contiguous_container() 587 uptr b = RoundUpTo(old_end, granularity); in __sanitizer_annotate_double_ended_contiguous_container() 635 uptr a2 = RoundUpTo(new_end, granularity); in __sanitizer_annotate_double_ended_contiguous_container() 637 uptr c2 = RoundUpTo(old_end, granularity); in __sanitizer_annotate_double_ended_contiguous_container() 793 uptr src_beg_up = RoundUpTo(src_beg, granularity); in __sanitizer_copy_contiguous_container_annotations() 794 uptr src_end_up = RoundUpTo(src_end, granularity); in __sanitizer_copy_contiguous_container_annotations() 807 uptr dst_beg_up = RoundUpTo(dst_beg, granularity); in __sanitizer_copy_contiguous_container_annotations()
|
| H A D | asan_premap_shadow.cpp | 29 return RoundUpTo(GetMaxVirtualAddress() >> ASAN_SHADOW_SCALE, granularity); in PremapShadowSize()
|
| H A D | asan_allocator.cpp | 220 PoisonShadow(m->Beg(), RoundUpTo(m->UsedSize(), ASAN_SHADOW_GRANULARITY), in PreQuarantine() 243 PoisonShadow(m->Beg(), RoundUpTo(m->UsedSize(), ASAN_SHADOW_GRANULARITY), in Recycle() 294 user_begin = RoundUpTo(user_begin, ASAN_SHADOW_GRANULARITY); in OnMapSecondary() 562 uptr rounded_size = RoundUpTo(Max(size, kChunkHeader2Size), alignment); in Allocate() 605 user_beg = RoundUpTo(user_beg, alignment); in Allocate() 622 uptr tail_beg = RoundUpTo(user_end, ASAN_SHADOW_GRANULARITY); in Allocate() 1066 size = size ? RoundUpTo(size, PageSize) : PageSize; in asan_pvalloc()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/dfsan/ |
| H A D | dfsan_interceptors.cpp | 137 dfsan_set_label(0, res, RoundUpTo(length, GetPageSizeCached())); in INTERCEPTOR() 151 dfsan_set_label(0, res, RoundUpTo(length, GetPageSizeCached())); in INTERCEPTOR() 162 dfsan_set_label(0, addr, RoundUpTo(length, GetPageSizeCached())); in INTERCEPTOR()
|
| H A D | dfsan_thread.cpp | 13 uptr size = RoundUpTo(sizeof(DFsanThread), PageSize); in Create() 57 uptr size = RoundUpTo(sizeof(DFsanThread), GetPageSizeCached()); in Destroy()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/msan/ |
| H A D | msan_thread.cpp | 13 uptr size = RoundUpTo(sizeof(MsanThread), PageSize); in Create() 59 uptr size = RoundUpTo(sizeof(MsanThread), GetPageSizeCached()); in Destroy()
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/nsan/ |
| H A D | nsan_thread.cpp | 22 uptr size = RoundUpTo(sizeof(NsanThread), PageSize); in Create() 67 uptr size = RoundUpTo(sizeof(NsanThread), GetPageSizeCached()); in Destroy()
|
| /freebsd/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
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/tysan/ |
| H A D | tysan_interceptors.cpp | 72 tysan_set_type_unknown(res, RoundUpTo(length, GetPageSize())); in INTERCEPTOR() 81 tysan_set_type_unknown(res, RoundUpTo(length, GetPageSize())); in INTERCEPTOR()
|