| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/ |
| H A D | tsan_platform.h | 627 extern uptr vmaSize; 839 static uptr Apply(uptr x) { in Apply() 868 static uptr Apply(uptr sp) { in Apply() 876 uptr p = in Apply() 897 ALWAYS_INLINE uptr CompressAddr(uptr addr) { in CompressAddr() 902 typedef uptr Result; 933 inline uptr RestoreAddr(uptr addr) { in RestoreAddr() 944 static uptr Apply(uptr tid) { in Apply() 956 static uptr Apply(uptr tid) { in Apply() 977 uptr ExtractLongJmpSp(uptr *env); [all …]
|
| H A D | tsan_rtl.h | 347 uptr TagFromShadowStackFrame(uptr pc); 359 void AddLocation(uptr addr, uptr size); 428 void MapShadow(uptr addr, uptr size); 468 void OnUserAlloc(ThreadState *thr, uptr pc, uptr p, uptr sz, bool write); 478 void UnalignedMemoryAccess(ThreadState *thr, uptr pc, uptr addr, uptr size, 487 void MemoryAccess(ThreadState *thr, uptr pc, uptr addr, uptr size, in MemoryAccess() 518 void MemoryResetRange(ThreadState *thr, uptr pc, uptr addr, uptr size); 519 void MemoryRangeFreed(ThreadState *thr, uptr pc, uptr addr, uptr size); 520 void MemoryRangeImitateWrite(ThreadState *thr, uptr pc, uptr addr, uptr size); 736 bool TryTraceMemoryAccess(ThreadState *thr, uptr pc, uptr addr, uptr size, [all …]
|
| H A D | tsan_mman.h | 31 void *user_alloc_internal(ThreadState *thr, uptr pc, uptr sz, 36 void *user_alloc(ThreadState *thr, uptr pc, uptr sz); 37 void *user_calloc(ThreadState *thr, uptr pc, uptr sz, uptr n); 38 void *user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz); 39 void *user_reallocarray(ThreadState *thr, uptr pc, void *p, uptr sz, uptr n); 40 void *user_memalign(ThreadState *thr, uptr pc, uptr align, uptr sz); 41 int user_posix_memalign(ThreadState *thr, uptr pc, void **memptr, uptr align, 43 void *user_aligned_alloc(ThreadState *thr, uptr pc, uptr align, uptr sz); 44 void *user_valloc(ThreadState *thr, uptr pc, uptr sz); 45 void *user_pvalloc(ThreadState *thr, uptr pc, uptr sz); [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_platform.h | 565 extern uptr vmaSize; 766 static uptr Apply(uptr x) { in Apply() 795 static uptr Apply(uptr sp) { in Apply() 803 uptr p = in Apply() 824 ALWAYS_INLINE uptr CompressAddr(uptr addr) { in CompressAddr() 829 typedef uptr Result; 836 const uptr ranges[] = { in Apply() 844 uptr beg = ranges[i]; in Apply() 860 inline uptr RestoreAddr(uptr addr) { in RestoreAddr() 871 uptr ExtractLongJmpSp(uptr *env); [all …]
|
| H A D | tsan_rtl.h | 403 uptr TagFromShadowStackFrame(uptr pc); 414 void AddLocation(uptr addr, uptr size); 480 void MapShadow(uptr addr, uptr size); 521 void OnUserAlloc(ThreadState *thr, uptr pc, uptr p, uptr sz, bool write); 524 void MemoryAccess(ThreadState *thr, uptr pc, uptr addr, uptr size, 526 void UnalignedMemoryAccess(ThreadState *thr, uptr pc, uptr addr, uptr size, 530 void MemoryAccessRangeT(ThreadState *thr, uptr pc, uptr addr, uptr size); 533 void MemoryAccessRange(ThreadState *thr, uptr pc, uptr addr, uptr size, in MemoryAccessRange() 544 void MemoryRangeFreed(ThreadState *thr, uptr pc, uptr addr, uptr size); 545 void MemoryResetRange(ThreadState *thr, uptr pc, uptr addr, uptr size); [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/asan/ |
| H A D | asan_interface_internal.h | 91 void __asan_set_shadow_00(uptr addr, uptr size); 93 void __asan_set_shadow_f1(uptr addr, uptr size); 95 void __asan_set_shadow_f2(uptr addr, uptr size); 97 void __asan_set_shadow_f3(uptr addr, uptr size); 99 void __asan_set_shadow_f5(uptr addr, uptr size); 101 void __asan_set_shadow_f8(uptr addr, uptr size); 125 uptr __asan_region_is_poisoned(uptr beg, uptr size); 153 uptr __asan_get_alloc_stack(uptr addr, uptr *trace, uptr size, 157 uptr __asan_get_free_stack(uptr addr, uptr *trace, uptr size, 164 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 OnUnmap(uptr p, uptr size) const; 122 const uptr kAllocatorSpace = ~(uptr)0; 126 const uptr kAllocatorSpace = ~(uptr)0; 131 const uptr kAllocatorSpace = ~(uptr)0; 135 const uptr kAllocatorSpace = ~(uptr)0; 145 const uptr kAllocatorSpace = ~(uptr)0; 149 const uptr kAllocatorSpace = ~(uptr)0; 209 void asan_delete(void *ptr, uptr size, uptr alignment, [all …]
|
| H A D | asan_report.h | 24 uptr beg; 25 uptr size; 27 uptr name_len; 28 uptr line; 49 void ReportGenericError(uptr pc, uptr bp, uptr sp, uptr addr, bool is_write, 52 void ReportNewDeleteTypeMismatch(uptr addr, uptr delete_size, 64 void ReportReallocArrayOverflow(uptr count, uptr size, 73 void ReportAllocationSizeTooBig(uptr user_size, uptr total_size, uptr max_size, 81 void ReportStringFunctionSizeOverflow(uptr offset, uptr size, 91 void ReportMacMzReallocUnknown(uptr addr, uptr zone_ptr, [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() 166 uptr begin = reinterpret_cast<uptr>(ff); in ForEachFakeFrame() 206 static ALWAYS_INLINE uptr OnMalloc(uptr class_id, uptr size) { in OnMalloc() 213 uptr ptr = reinterpret_cast<uptr>(ff); in OnMalloc() 218 static ALWAYS_INLINE uptr OnMallocAlways(uptr class_id, uptr size) { in OnMallocAlways() 227 uptr ptr = reinterpret_cast<uptr>(ff); in OnMallocAlways() 232 static ALWAYS_INLINE void OnFree(uptr ptr, uptr class_id, uptr size) { in OnFree() 291 void __asan_alloca_poison(uptr addr, uptr size) { in __asan_alloca_poison() [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() 177 uptr __asan_region_is_poisoned(uptr beg, uptr size) { in __asan_region_is_poisoned() 265 uptr __asan_load_cxx_array_cookie(uptr *p) { in __asan_load_cxx_array_cookie() 311 void __asan_set_shadow_00(uptr addr, uptr size) { in __asan_set_shadow_00() 352 uptr beg = reinterpret_cast<uptr>(beg_p); in __sanitizer_annotate_contiguous_container() 353 uptr end = reinterpret_cast<uptr>(end_p); in __sanitizer_annotate_contiguous_container() 400 uptr beg = reinterpret_cast<uptr>(beg_p); in __sanitizer_contiguous_container_find_bad_address() 401 uptr end = reinterpret_cast<uptr>(end_p); in __sanitizer_contiguous_container_find_bad_address() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_common.h | 130 void UnmapFromTo(uptr from, uptr to); 139 uptr MapDynamicShadow(uptr shadow_size_bytes, uptr shadow_scale, 148 uptr MapDynamicShadowAndAliases(uptr shadow_size, uptr alias_size, 159 void ProtectGap(uptr addr, uptr size, uptr zero_base_shadow_start, 163 uptr FindAvailableMemoryRange(uptr size, uptr alignment, uptr left_padding, 184 uptr InitAligned(uptr size, uptr align, const char *name = nullptr); 185 uptr Map(uptr fixed_addr, uptr size, const char *name = nullptr); 187 void Unmap(uptr addr, uptr size); 446 inline constexpr uptr RoundUpTo(uptr size, uptr boundary) { in RoundUpTo() 451 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() 689 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 …]
|
| /llvm-project-15.0.7/compiler-rt/lib/scudo/standalone/ |
| H A D | size_class_map.h | 18 inline uptr scaledLog2(uptr Size, uptr ZeroLog, uptr LogBits) { in scaledLog2() 71 static const uptr NumClasses = 77 static uptr getSizeByClassId(uptr ClassId) { in getSizeByClassId() 92 static uptr getClassIdBySize(uptr Size) { in getClassIdBySize() 114 static const uptr ClassesSize = 189 static uptr getSizeByClassId(uptr ClassId) { in getSizeByClassId() 205 static uptr getClassIdBySize(uptr Size) { in getClassIdBySize() 222 static const uptr NumBits = 3; 327 uptr PrevS = 0; in printMap() 328 uptr TotalCached = 0; in printMap() [all …]
|
| H A D | release.h | 30 void releasePageRangeToOS(uptr From, uptr To) { in releasePageRangeToOS() 40 uptr Base = 0; 54 PackedCounterArray(uptr NumberOfRegions, uptr CountersPerRegion, in PackedCounterArray() 102 uptr get(uptr Region, uptr I) const { in get() 110 void inc(uptr Region, uptr I) const { in inc() 119 void incRange(uptr Region, uptr From, uptr To) const { in incRange() 131 const uptr Regions; 134 uptr CounterMask; 139 uptr BufferSize; 140 uptr *Buffer; [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 …]
|
| /llvm-project-15.0.7/compiler-rt/lib/hwasan/ |
| H A D | hwasan_interface_internal.h | 37 using __sanitizer::uptr; 48 void __hwasan_init_frames(uptr, uptr); 54 void __hwasan_loadN(uptr, uptr); 56 void __hwasan_load1(uptr); 58 void __hwasan_load2(uptr); 67 void __hwasan_loadN_noabort(uptr, uptr); 80 void __hwasan_storeN(uptr, uptr); 93 void __hwasan_storeN_noabort(uptr, uptr); 106 void __hwasan_tag_memory(uptr p, u8 tag, uptr sz); 109 uptr __hwasan_tag_pointer(uptr p, u8 tag); [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/lsan/ |
| H A D | lsan_common.h | 86 uptr chunk; 96 uptr hit_count; 105 uptr addr; 106 uptr size; 137 uptr begin; 138 uptr size; 154 void ForEachExtraStackRangeCb(uptr begin, uptr end, void* arg); 161 void ScanRangeForPointers(uptr begin, uptr end, 226 void GetAllocatorGlobalRange(uptr *begin, uptr *end); 253 uptr *tls_begin, uptr *tls_end, uptr *cache_begin, [all …]
|
| H A D | lsan_allocator.h | 24 void *Allocate(const StackTrace &stack, uptr size, uptr alignment, 34 void GetAllocatorCacheRange(uptr *begin, uptr *end); 44 uptr requested_size : 54; 46 uptr requested_size : 32; 47 uptr padding : 22; 69 const uptr kAllocatorSpace = ~(uptr)0; 101 int lsan_posix_memalign(void **memptr, uptr alignment, uptr size, 103 void *lsan_aligned_alloc(uptr alignment, uptr size, const StackTrace &stack); 104 void *lsan_memalign(uptr alignment, uptr size, const StackTrace &stack); 108 void *lsan_reallocarray(void *p, uptr nmemb, uptr size, [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/msan/ |
| H A D | msan_allocator.cpp | 28 uptr requested_size; 32 void OnMap(uptr p, uptr size) const {} in OnMap() 33 void OnUnmap(uptr p, uptr size) const { in OnUnmap() 154 static void *MsanAllocate(StackTrace *stack, uptr size, uptr alignment, in MsanAllocate() 256 static void *MsanCalloc(StackTrace *stack, uptr nmemb, uptr size) { in MsanCalloc() 277 void *msan_calloc(uptr nmemb, uptr size, StackTrace *stack) { in msan_calloc() 291 void *msan_reallocarray(void *ptr, uptr nmemb, uptr size, StackTrace *stack) { in msan_reallocarray() 318 void *msan_aligned_alloc(uptr alignment, uptr size, StackTrace *stack) { in msan_aligned_alloc() 328 void *msan_memalign(uptr alignment, uptr size, StackTrace *stack) { in msan_memalign() 338 int msan_posix_memalign(void **memptr, uptr alignment, uptr size, in msan_posix_memalign() [all …]
|