| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_platform.h | 711 extern uptr vmaSize; 927 static uptr Apply(uptr x) { in Apply() 956 static uptr Apply(uptr sp) { in Apply() 964 uptr p = in Apply() 985 ALWAYS_INLINE uptr CompressAddr(uptr addr) { in CompressAddr() 990 typedef uptr Result; 997 const uptr ranges[] = { in Apply() 1005 uptr beg = ranges[i]; in Apply() 1021 inline uptr RestoreAddr(uptr addr) { in RestoreAddr() 1032 uptr ExtractLongJmpSp(uptr *env); [all …]
|
| H A D | tsan_rtl.h | 405 uptr TagFromShadowStackFrame(uptr pc); 416 void AddLocation(uptr addr, uptr size); 482 void MapShadow(uptr addr, uptr size); 524 void OnUserAlloc(ThreadState *thr, uptr pc, uptr p, uptr sz, bool write); 527 void MemoryAccess(ThreadState *thr, uptr pc, uptr addr, uptr size, 529 void UnalignedMemoryAccess(ThreadState *thr, uptr pc, uptr addr, uptr size, 533 void MemoryAccessRangeT(ThreadState *thr, uptr pc, uptr addr, uptr size); 536 void MemoryAccessRange(ThreadState *thr, uptr pc, uptr addr, uptr size, in MemoryAccessRange() 547 void MemoryRangeFreed(ThreadState *thr, uptr pc, uptr addr, uptr size); 548 void MemoryResetRange(ThreadState *thr, uptr pc, uptr addr, uptr size); [all …]
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/asan_abi/ |
| H A D | asan_abi_shim.cpp | 191 void __asan_loadN(uptr addr, uptr size) { in __asan_loadN() 283 uptr __asan_region_is_poisoned(uptr beg, uptr size) { in __asan_region_is_poisoned() 378 uptr __asan_stack_malloc_0(uptr size) { in __asan_stack_malloc_0() 381 uptr __asan_stack_malloc_1(uptr size) { in __asan_stack_malloc_1() 384 uptr __asan_stack_malloc_2(uptr size) { in __asan_stack_malloc_2() 387 uptr __asan_stack_malloc_3(uptr size) { in __asan_stack_malloc_3() 390 uptr __asan_stack_malloc_4(uptr size) { in __asan_stack_malloc_4() 393 uptr __asan_stack_malloc_5(uptr size) { in __asan_stack_malloc_5() 396 uptr __asan_stack_malloc_6(uptr size) { in __asan_stack_malloc_6() 399 uptr __asan_stack_malloc_7(uptr size) { in __asan_stack_malloc_7() [all …]
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/asan/ |
| H A D | asan_interface_internal.h | 92 void __asan_set_shadow_00(uptr addr, uptr size); 94 void __asan_set_shadow_01(uptr addr, uptr size); 96 void __asan_set_shadow_02(uptr addr, uptr size); 98 void __asan_set_shadow_03(uptr addr, uptr size); 100 void __asan_set_shadow_04(uptr addr, uptr size); 102 void __asan_set_shadow_05(uptr addr, uptr size); 140 uptr __asan_region_is_poisoned(uptr beg, uptr size); 168 uptr __asan_get_alloc_stack(uptr addr, uptr *trace, uptr size, 172 uptr __asan_get_free_stack(uptr addr, uptr *trace, uptr size, 179 void __asan_report_error(uptr pc, uptr bp, uptr sp, [all …]
|
| H A D | asan_fake_stack.h | 80 static uptr RequiredSize(uptr stack_size_log) { in RequiredSize() 91 static uptr FlagsOffset(uptr stack_size_log, uptr class_id) { in FlagsOffset() 97 static uptr NumberOfFrames(uptr stack_size_log, uptr class_id) { in NumberOfFrames() 102 static uptr ModuloNumberOfFrames(uptr stack_size_log, uptr class_id, uptr n) { in ModuloNumberOfFrames() 113 u8 *GetFrame(uptr stack_size_log, uptr class_id, uptr pos) { in GetFrame() 121 FakeFrame *Allocate(uptr stack_size_log, uptr class_id, uptr real_stack); 124 static void Deallocate(uptr x, uptr class_id) { in Deallocate() 132 uptr AddrIsInFakeStack(uptr addr, uptr *frame_beg, uptr *frame_end); 133 USED uptr AddrIsInFakeStack(uptr addr) { in AddrIsInFakeStack() 139 static uptr BytesInSizeClass(uptr class_id) { in BytesInSizeClass() [all …]
|
| H A D | asan_allocator.h | 112 uptr size_; 116 void OnMap(uptr p, uptr size) const; 117 void OnMapSecondary(uptr p, uptr size, uptr user_begin, uptr user_size) const; 118 void OnUnmap(uptr p, uptr size) const; 125 const uptr kAllocatorSpace = ~(uptr)0; 192 const uptr kAllocatorSpace = ~(uptr)0; 197 const uptr kAllocatorSpace = ~(uptr)0; 201 const uptr kAllocatorSpace = ~(uptr)0; 205 const uptr kAllocatorSpace = ~(uptr)0; 209 const uptr kAllocatorSpace = ~(uptr)0; [all …]
|
| H A D | asan_report.h | 24 uptr beg; 25 uptr size; 27 uptr name_len; 28 uptr line; 50 void ReportGenericError(uptr pc, uptr bp, uptr sp, uptr addr, bool is_write, 65 void ReportReallocArrayOverflow(uptr count, uptr size, 74 void ReportAllocationSizeTooBig(uptr user_size, uptr total_size, uptr max_size, 88 uptr storage_beg, uptr storage_end, uptr old_container_beg, 89 uptr old_container_end, uptr new_container_beg, uptr new_container_end, 96 void ReportMacMzReallocUnknown(uptr addr, uptr zone_ptr, [all …]
|
| H A D | asan_poisoning.cpp | 35 void PoisonShadow(uptr addr, uptr size, u8 value) { in PoisonShadow() 105 uptr beg_addr = (uptr)addr; in __asan_poison_memory_region() 145 uptr beg_addr = (uptr)addr; in __asan_unpoison_memory_region() 173 uptr __asan_region_is_poisoned(uptr beg, uptr size) { in __asan_region_is_poisoned() 261 uptr __asan_load_cxx_array_cookie(uptr *p) { in __asan_load_cxx_array_cookie() 307 void __asan_set_shadow_00(uptr addr, uptr size) { in __asan_set_shadow_00() 311 void __asan_set_shadow_01(uptr addr, uptr size) { in __asan_set_shadow_01() 370 uptr &old_beg, uptr &old_end, uptr &new_beg, in FixUnalignedStorage() 600 uptr beg = reinterpret_cast<uptr>(beg_p); in __sanitizer_contiguous_container_find_bad_address() 601 uptr end = reinterpret_cast<uptr>(end_p); in __sanitizer_contiguous_container_find_bad_address() [all …]
|
| H A D | asan_fake_stack.cpp | 29 ALWAYS_INLINE void SetShadow(uptr ptr, uptr size, uptr class_id, u64 magic) { in SetShadow() 33 for (uptr i = 0; i < (((uptr)1) << class_id); i++) { in SetShadow() 116 uptr FakeStack::AddrIsInFakeStack(uptr ptr, uptr *frame_beg, uptr *frame_end) { in AddrIsInFakeStack() 184 uptr begin = reinterpret_cast<uptr>(ff); in ForEachFakeFrame() 224 static ALWAYS_INLINE uptr OnMalloc(uptr class_id, uptr size) { in OnMalloc() 232 uptr ptr = reinterpret_cast<uptr>(ff); in OnMalloc() 237 static ALWAYS_INLINE uptr OnMallocAlways(uptr class_id, uptr size) { in OnMallocAlways() 245 uptr ptr = reinterpret_cast<uptr>(ff); in OnMallocAlways() 250 static ALWAYS_INLINE void OnFree(uptr ptr, uptr class_id, uptr size) { in OnFree() 309 void __asan_alloca_poison(uptr addr, uptr size) { in __asan_alloca_poison() [all …]
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/hwasan/ |
| H A D | hwasan_interface_internal.h | 48 void __hwasan_init_frames(uptr, uptr); 54 void __hwasan_loadN(uptr, uptr); 67 void __hwasan_loadN_noabort(uptr, uptr); 80 void __hwasan_loadN_match_all(uptr, uptr, u8); 93 void __hwasan_loadN_match_all_noabort(uptr, uptr, u8); 106 void __hwasan_storeN(uptr, uptr); 119 void __hwasan_storeN_noabort(uptr, uptr); 132 void __hwasan_storeN_match_all(uptr, uptr, u8); 158 void __hwasan_tag_memory(uptr p, u8 tag, uptr sz); 161 uptr __hwasan_tag_pointer(uptr p, u8 tag); [all …]
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
| H A D | release.h | 33 void releasePageRangeToOS(uptr From, uptr To) { in releasePageRangeToOS() 210 RegionPageMap(uptr NumberOfRegions, uptr CountersPerRegion, uptr MaxValue) { in RegionPageMap() 224 void reset(uptr NumberOfRegion, uptr CountersPerRegion, uptr MaxValue) { in reset() 257 uptr get(uptr Region, uptr I) const { in get() 266 void inc(uptr Region, uptr I) const { in inc() 276 void incN(uptr Region, uptr I, uptr N) const { in incN() 287 void incRange(uptr Region, uptr From, uptr To) const { in incRange() 305 void setAsAllCountedRange(uptr Region, uptr From, uptr To) const { in setAsAllCountedRange() 312 bool updateAsAllCountedIf(uptr Region, uptr I, uptr MaxCount) { in updateAsAllCountedIf() 389 PageReleaseContext(uptr BlockSize, uptr NumberOfRegions, uptr ReleaseSize, [all …]
|
| H A D | size_class_map.h | 18 inline uptr scaledLog2(uptr Size, uptr ZeroLog, uptr LogBits) { in scaledLog2() 74 static const uptr NumClasses = 80 static uptr getSizeByClassId(uptr ClassId) { in getSizeByClassId() 95 static uptr getClassIdBySize(uptr Size) { in getClassIdBySize() 117 static const uptr ClassesSize = 192 static uptr getSizeByClassId(uptr ClassId) { in getSizeByClassId() 208 static uptr getClassIdBySize(uptr Size) { in getClassIdBySize() 225 static const uptr NumBits = 3; 306 uptr PrevS = 0; in printMap() 307 uptr TotalCached = 0; in printMap() [all …]
|
| H A D | common.h | 33 inline constexpr uptr roundUp(uptr X, uptr Boundary) { in roundUp() 37 inline constexpr uptr roundUpSlow(uptr X, uptr Boundary) { in roundUpSlow() 41 inline constexpr uptr roundDown(uptr X, uptr Boundary) { in roundDown() 45 inline constexpr uptr roundDownSlow(uptr X, uptr Boundary) { in roundDownSlow() 67 inline uptr getMostSignificantSetBitIndex(uptr X) { in getMostSignificantSetBitIndex() 72 inline uptr roundUpPowerOfTwo(uptr Size) { in roundUpPowerOfTwo() 82 inline uptr getLeastSignificantSetBitIndex(uptr X) { in getLeastSignificantSetBitIndex() 87 inline uptr getLog2(uptr X) { in getLog2() 115 inline void computePercentage(uptr Numerator, uptr Denominator, uptr *Integral, in computePercentage() 187 void setMemoryPermission(uptr Addr, uptr Size, uptr Flags, [all …]
|
| H A D | mem_map_fuchsia.h | 26 bool mapImpl(uptr Addr, uptr Size, const char *Name, uptr Flags); 27 void unmapImpl(uptr Addr, uptr Size); 28 bool remapImpl(uptr Addr, uptr Size, const char *Name, uptr Flags); 29 void setMemoryPermissionImpl(uptr Addr, uptr Size, uptr Flags); 30 void releasePagesToOSImpl(uptr From, uptr Size) { in releasePagesToOSImpl() 33 void releaseAndZeroPagesToOSImpl(uptr From, uptr Size); 41 MemMapFuchsia(uptr Base, uptr Capacity); 44 uptr MapAddr = 0; 60 bool createImpl(uptr Addr, uptr Size, const char *Name, uptr Flags); 62 MemMapT dispatchImpl(uptr Addr, uptr Size); [all …]
|
| H A D | mem_map_linux.h | 24 MemMapLinux(uptr Base, uptr Capacity) in MemMapLinux() 28 bool mapImpl(uptr Addr, uptr Size, const char *Name, uptr Flags = 0); 29 void unmapImpl(uptr Addr, uptr Size); 30 bool remapImpl(uptr Addr, uptr Size, const char *Name, uptr Flags = 0); 31 void setMemoryPermissionImpl(uptr Addr, uptr Size, uptr Flags); 32 void releasePagesToOSImpl(uptr From, uptr Size) { in releasePagesToOSImpl() 35 void releaseAndZeroPagesToOSImpl(uptr From, uptr Size); 40 uptr MapBase = 0; 54 bool createImpl(uptr Addr, uptr Size, const char *Name, uptr Flags); 56 MemMapT dispatchImpl(uptr Addr, uptr Size); [all …]
|
| H A D | memtag.h | 49 inline NORETURN uptr untagPointer(uptr Ptr) { 124 uptr PrevTCO; 148 inline uptr selectRandomTag(uptr Ptr, uptr ExcludeMask) { in selectRandomTag() 150 uptr TaggedPtr; in selectRandomTag() 161 inline uptr addFixedTag(uptr Ptr, uptr Tag) { in addFixedTag() 167 inline uptr storeTags(uptr Begin, uptr End) { in storeTags() 243 inline uptr loadTag(uptr Ptr) { in loadTag() 275 inline NORETURN uptr selectRandomTag(uptr Ptr, uptr ExcludeMask) { in selectRandomTag() 281 inline NORETURN uptr addFixedTag(uptr Ptr, uptr Tag) { in addFixedTag() 287 inline NORETURN uptr storeTags(uptr Begin, uptr End) { in storeTags() [all …]
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_common.h | 132 void UnmapFromTo(uptr from, uptr to); 141 uptr MapDynamicShadow(uptr shadow_size_bytes, uptr shadow_scale, 150 uptr MapDynamicShadowAndAliases(uptr shadow_size, uptr alias_size, 161 void ProtectGap(uptr addr, uptr size, uptr zero_base_shadow_start, 165 uptr FindAvailableMemoryRange(uptr size, uptr alignment, uptr left_padding, 186 uptr InitAligned(uptr size, uptr align, const char *name = nullptr); 187 uptr Map(uptr fixed_addr, uptr size, const char *name = nullptr); 189 void Unmap(uptr addr, uptr size); 460 inline constexpr uptr RoundUpTo(uptr size, uptr boundary) { in RoundUpTo() 465 inline constexpr uptr RoundDownTo(uptr x, uptr boundary) { in RoundDownTo() [all …]
|
| H A D | sanitizer_stacktrace.h | 68 uptr PrintTo(char *out_buf, uptr out_buf_size) const; 79 static inline uptr GetPreviousInstructionPc(uptr pc); 80 static uptr GetNextInstructionPc(uptr pc); 85 uptr StackTrace::GetPreviousInstructionPc(uptr pc) { in GetPreviousInstructionPc() 115 void Init(const uptr *pcs, uptr cnt, uptr extra_top_pc = 0); 133 void Unwind(u32 max_depth, uptr pc, uptr bp, void *context, uptr stack_top, 147 void UnwindFast(uptr pc, uptr bp, uptr stack_top, uptr stack_bottom, 153 uptr LocatePcInTrace(uptr pc); 170 static inline bool IsValidFrame(uptr frame, uptr stack_top, uptr stack_bottom) { in IsValidFrame() 185 uptr sp = (uptr)&local_stack [all …]
|
| H A D | sanitizer_allocator_primary64.h | 52 bool GetAndResetStats(uptr &ranges, uptr &bytes) { in GetAndResetStats() 169 static bool CanAllocate(uptr size, uptr alignment) { in CanAllocate() 234 uptr P = reinterpret_cast<uptr>(p); in PointerIsMine() 264 uptr chunk_idx = GetChunkIdx((uptr)p, size); in GetBlockBegin() 305 static void FillMemoryProfile(uptr start, uptr rss, bool file, uptr *stats) { in FillMemoryProfile() 311 void PrintStats(uptr class_id, uptr rss) { in PrintStats() 387 static uptr ClassIdToSize(uptr class_id) { in ClassIdToSize() 440 uptr Get(uptr i) const { in Get() 454 void IncRange(uptr from, uptr to) const { in IncRange() 690 uptr GetMetadataEnd(uptr region_beg) const { in GetMetadataEnd() [all …]
|
| H A D | sanitizer_posix.h | 31 uptr internal_close(fd_t fd); 33 uptr internal_read(fd_t fd, void *buf, uptr count); 34 uptr internal_write(fd_t fd, const void *buf, uptr count); 37 uptr internal_mmap(void *addr, uptr length, int prot, int flags, 39 uptr internal_munmap(void *addr, uptr length); 41 uptr internal_mremap(void *old_address, uptr old_size, uptr new_size, int flags, 45 int internal_madvise(uptr addr, uptr length, int advice); 54 uptr internal_readlink(const char *path, char *buf, uptr bufsize); 70 uptr *oldlenp, const void *newp, uptr newlen); 113 uptr MmapNamed(void *addr, uptr length, int prot, int flags, const char *name); [all …]
|
| H A D | sanitizer_allocator_primary32.h | 96 static uptr AllocationSizeRequiredForNElements(uptr n) { in AllocationSizeRequiredForNElements() 99 static uptr MaxCached(uptr size) { in MaxCached() 114 static uptr ClassIdToSize(uptr class_id) { in ClassIdToSize() 146 void UnmapWithCallback(uptr beg, uptr size) { in UnmapWithCallback() 151 static bool CanAllocate(uptr size, uptr alignment) { in CanAllocate() 159 uptr mem = reinterpret_cast<uptr>(p); in GetMetaData() 193 uptr mem = reinterpret_cast<uptr>(p); in PointerIsMine() 202 uptr id = ComputeRegionId(reinterpret_cast<uptr>(p)); in GetSizeClass() 208 uptr mem = reinterpret_cast<uptr>(p); in GetBlockBegin() 288 uptr ComputeRegionId(uptr mem) const { in ComputeRegionId() [all …]
|
| H A D | sanitizer_allocator_size_class_map.h | 119 template <uptr kNumBits, uptr kMinSizeLog, uptr kMidSizeLog, uptr kMaxSizeLog, 120 uptr kMaxNumCachedHintT, uptr kMaxBytesCachedLog> 145 static uptr Size(uptr class_id) { in Size() 158 static uptr ClassID(uptr size) { in ClassID() 170 static uptr MaxCachedHint(uptr size) { in MaxCachedHint() 174 uptr n; in MaxCachedHint() 184 uptr prev_s = 0; in Print() 185 uptr total_cached = 0; in Print() 187 uptr s = Size(i); in Print() 190 uptr d = s - prev_s; in Print() [all …]
|
| H A D | sanitizer_deadlock_detector.h | 59 bool addLock(uptr lock_id, uptr current_epoch, u32 stk) { in addLock() 116 uptr epoch_; 154 uptr newNode(uptr data) { in newNode() 182 uptr getData(uptr node) const { return data_[nodeToIndex(node)]; } in getData() 310 uptr findPathToLock(DeadlockDetectorTLS<BV> *dtls, uptr cur_node, uptr *path, in findPathToLock() 347 bool testOnlyHasEdge(uptr l1, uptr l2) { in testOnlyHasEdge() 351 bool testOnlyHasEdgeRaw(uptr idx1, uptr idx2) { in testOnlyHasEdgeRaw() 370 uptr indexToNode(uptr idx) const { in indexToNode() 377 uptr nodeToIndex(uptr node) const { in nodeToIndex() 384 uptr getAvailableNode(uptr data) { in getAvailableNode() [all …]
|
| /freebsd-14.2/contrib/llvm-project/compiler-rt/lib/lsan/ |
| H A D | lsan_allocator.h | 24 void *Allocate(const StackTrace &stack, uptr size, uptr alignment, 34 void GetAllocatorCacheRange(uptr *begin, uptr *end); 45 uptr requested_size : 54; 48 uptr padding : 22; 70 const uptr kAllocatorSpace = ~(uptr)0; 89 const uptr kAllocatorSpace = ~(uptr)0; 124 int lsan_posix_memalign(void **memptr, uptr alignment, uptr size, 126 void *lsan_aligned_alloc(uptr alignment, uptr size, const StackTrace &stack); 127 void *lsan_memalign(uptr alignment, uptr size, const StackTrace &stack); 131 void *lsan_reallocarray(void *p, uptr nmemb, uptr size, [all …]
|
| H A D | lsan_common.h | 106 uptr *tls_begin, uptr *tls_end, uptr *cache_begin, 128 void GetAllocatorGlobalRange(uptr *begin, uptr *end); 133 uptr GetUserBegin(uptr chunk); 136 uptr GetUserAddr(uptr chunk); 192 uptr chunk; 202 uptr hit_count; 211 uptr addr; 212 uptr size; 250 uptr caller_sp; 264 void ScanRangeForPointers(uptr begin, uptr end, [all …]
|