| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_platform.h | 591 extern uptr vmaSize; 738 bool GetUserRegion(int i, uptr *start, uptr *end) { in GetUserRegion() 931 uptr MemToShadowImpl(uptr x) { in MemToShadowImpl() 946 uptr MemToShadow(uptr x) { in MemToShadow() 1035 uptr ShadowToMemImpl(uptr s) { in ShadowToMemImpl() 1065 uptr ShadowToMem(uptr s) { in ShadowToMem() 1108 uptr p = Mapping::kTraceMemBeg + (uptr)tid * kTotalTraceSize; in GetThreadTraceImpl() 1151 uptr p = Mapping::kTraceMemBeg + (uptr)tid * kTotalTraceSize in GetThreadTraceHeaderImpl() 1197 void WriteMemoryProfile(char *buf, uptr buf_size, uptr nthread, uptr nlive); 1200 uptr ExtractLongJmpSp(uptr *env); [all …]
|
| H A D | tsan_rtl.h | 324 uptr sp; 573 uptr TagFromShadowStackFrame(uptr pc); 585 void AddLocation(uptr addr, uptr size); 654 void MapShadow(uptr addr, uptr size); 656 void DontNeedShadowFor(uptr addr, uptr size); 670 bool IsExpectedReport(uptr addr, uptr size); 694 void OnUserAlloc(ThreadState *thr, uptr pc, uptr p, uptr sz, bool write); 705 uptr size, uptr step, bool is_write); 734 void MemoryResetRange(ThreadState *thr, uptr pc, uptr addr, uptr size); 735 void MemoryRangeFreed(ThreadState *thr, uptr pc, uptr addr, uptr size); [all …]
|
| H A D | tsan_mman.h | 19 const uptr kDefaultAlignment = 16; 29 void *user_alloc_internal(ThreadState *thr, uptr pc, uptr sz, 34 void *user_alloc(ThreadState *thr, uptr pc, uptr sz); 35 void *user_calloc(ThreadState *thr, uptr pc, uptr sz, uptr n); 36 void *user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz); 37 void *user_reallocarray(ThreadState *thr, uptr pc, void *p, uptr sz, uptr n); 38 void *user_memalign(ThreadState *thr, uptr pc, uptr align, uptr sz); 39 int user_posix_memalign(ThreadState *thr, uptr pc, void **memptr, uptr align, 41 void *user_aligned_alloc(ThreadState *thr, uptr pc, uptr align, uptr sz); 42 void *user_valloc(ThreadState *thr, uptr pc, uptr sz); [all …]
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/asan/ |
| H A D | asan_interface_internal.h | 90 void __asan_set_shadow_00(uptr addr, uptr size); 92 void __asan_set_shadow_f1(uptr addr, uptr size); 94 void __asan_set_shadow_f2(uptr addr, uptr size); 96 void __asan_set_shadow_f3(uptr addr, uptr size); 98 void __asan_set_shadow_f5(uptr addr, uptr size); 100 void __asan_set_shadow_f8(uptr addr, uptr size); 124 uptr __asan_region_is_poisoned(uptr beg, uptr size); 152 uptr __asan_get_alloc_stack(uptr addr, uptr *trace, uptr size, 156 uptr __asan_get_free_stack(uptr addr, uptr *trace, uptr size, 163 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 | 114 uptr size_; 118 void OnMap(uptr p, uptr size) const; 119 void OnUnmap(uptr p, uptr size) const; 124 const uptr kAllocatorSpace = ~(uptr)0; 128 const uptr kAllocatorSpace = ~(uptr)0; 133 const uptr kAllocatorSpace = ~(uptr)0; 137 const uptr kAllocatorSpace = ~(uptr)0; 147 const uptr kAllocatorSpace = ~(uptr)0; 151 const uptr kAllocatorSpace = ~(uptr)0; 211 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() 115 uptr FakeStack::AddrIsInFakeStack(uptr ptr, uptr *frame_beg, uptr *frame_end) { in AddrIsInFakeStack() 167 uptr begin = reinterpret_cast<uptr>(ff); in ForEachFakeFrame() 207 static ALWAYS_INLINE uptr OnMalloc(uptr class_id, uptr size) { in OnMalloc() 214 uptr ptr = reinterpret_cast<uptr>(ff); in OnMalloc() 219 static ALWAYS_INLINE uptr OnMallocAlways(uptr class_id, uptr size) { in OnMallocAlways() 228 uptr ptr = reinterpret_cast<uptr>(ff); in OnMallocAlways() 233 static ALWAYS_INLINE void OnFree(uptr ptr, uptr class_id, uptr size) { in OnFree() 292 void __asan_alloca_poison(uptr addr, uptr size) { in __asan_alloca_poison() [all …]
|
| H A D | asan_malloc_linux.cpp | 37 uptr off = (uptr)ptr - (uptr)alloc_memory_for_dlsym; in IsInDlsymAllocPool() 70 uptr addr = (uptr)&alloc_memory_for_dlsym[allocated_for_dlsym]; in PosixMemalignFromLocalPool() 74 uptr *end_mem = (uptr*)(aligned_addr + aligned_size); in PosixMemalignFromLocalPool() 92 const uptr offset = (uptr)ptr - (uptr)alloc_memory_for_dlsym; in ReallocFromLocalPool() 133 INTERCEPTOR(void*, calloc, uptr nmemb, uptr size) { in INTERCEPTOR() 161 INTERCEPTOR(void*, memalign, uptr boundary, uptr size) { in INTERCEPTOR() 175 INTERCEPTOR(void*, aligned_alloc, uptr boundary, uptr size) { in INTERCEPTOR() 237 void *(*calloc)(uptr n_elements, uptr elem_size); 239 void *(*memalign)(uptr alignment, uptr bytes); 244 void *(*calloc)(uptr n_elements, uptr elem_size); [all …]
|
| H A D | asan_poisoning.cpp | 33 void PoisonShadow(uptr addr, uptr size, u8 value) { in PoisonShadow() 103 uptr beg_addr = (uptr)addr; in __asan_poison_memory_region() 143 uptr beg_addr = (uptr)addr; in __asan_unpoison_memory_region() 175 uptr __asan_region_is_poisoned(uptr beg, uptr size) { in __asan_region_is_poisoned() 263 uptr __asan_load_cxx_array_cookie(uptr *p) { in __asan_load_cxx_array_cookie() 309 void __asan_set_shadow_00(uptr addr, uptr size) { in __asan_set_shadow_00() 350 uptr beg = reinterpret_cast<uptr>(beg_p); in __sanitizer_annotate_contiguous_container() 351 uptr end = reinterpret_cast<uptr>(end_p); in __sanitizer_annotate_contiguous_container() 398 uptr beg = reinterpret_cast<uptr>(beg_p); in __sanitizer_contiguous_container_find_bad_address() 399 uptr end = reinterpret_cast<uptr>(end_p); in __sanitizer_contiguous_container_find_bad_address() [all …]
|
| /freebsd-13.1/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_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); 115 void __hwasan_tag_mismatch4(uptr addr, uptr access_info, uptr *registers_frame, 175 void * __sanitizer_memalign(uptr alignment, uptr size); 178 void * __sanitizer_aligned_alloc(uptr alignment, uptr size); [all …]
|
| /freebsd-13.1/contrib/llvm-project/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 | 46 inline uptr untagPointer(uptr Ptr) { 120 uptr PrevTCO; 144 inline uptr selectRandomTag(uptr Ptr, uptr ExcludeMask) { in selectRandomTag() 146 uptr TaggedPtr; in selectRandomTag() 157 inline uptr addFixedTag(uptr Ptr, uptr Tag) { in addFixedTag() 163 inline uptr storeTags(uptr Begin, uptr End) { in storeTags() 239 inline uptr loadTag(uptr Ptr) { in loadTag() 271 inline uptr selectRandomTag(uptr Ptr, uptr ExcludeMask) { in selectRandomTag() 277 inline uptr addFixedTag(uptr Ptr, uptr Tag) { in addFixedTag() 283 inline uptr storeTags(uptr Begin, uptr End) { in storeTags() [all …]
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_common.h | 126 void UnmapFromTo(uptr from, uptr to); 135 uptr MapDynamicShadow(uptr shadow_size_bytes, uptr shadow_scale, 144 uptr MapDynamicShadowAndAliases(uptr shadow_size, uptr alias_size, 155 void ProtectGap(uptr addr, uptr size, uptr zero_base_shadow_start, 159 uptr FindAvailableMemoryRange(uptr size, uptr alignment, uptr left_padding, 180 uptr InitAligned(uptr size, uptr align, const char *name = nullptr); 181 uptr Map(uptr fixed_addr, uptr size, const char *name = nullptr); 183 void Unmap(uptr addr, uptr size); 436 inline uptr RoundUpTo(uptr size, uptr boundary) { in RoundUpTo() 441 inline 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() 116 void Init(const uptr *pcs, uptr cnt, uptr extra_top_pc = 0); 134 void Unwind(u32 max_depth, uptr pc, uptr bp, void *context, uptr stack_top, 148 void UnwindFast(uptr pc, uptr bp, uptr stack_top, uptr stack_bottom, 154 uptr LocatePcInTrace(uptr pc); 171 static inline bool IsValidFrame(uptr frame, uptr stack_top, uptr stack_bottom) { in IsValidFrame() 186 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() 303 static void FillMemoryProfile(uptr start, uptr rss, bool file, uptr *stats, in FillMemoryProfile() 310 void PrintStats(uptr class_id, uptr rss) { in PrintStats() 386 static uptr ClassIdToSize(uptr class_id) { in ClassIdToSize() 439 uptr Get(uptr i) const { in Get() 453 void IncRange(uptr from, uptr to) const { in IncRange() 688 uptr GetMetadataEnd(uptr region_beg) const { in GetMetadataEnd() [all …]
|
| H A D | sanitizer_posix.h | 34 uptr internal_close(fd_t fd); 36 uptr internal_read(fd_t fd, void *buf, uptr count); 37 uptr internal_write(fd_t fd, const void *buf, uptr count); 40 uptr internal_mmap(void *addr, uptr length, int prot, int flags, 42 uptr internal_munmap(void *addr, uptr length); 44 uptr internal_mremap(void *old_address, uptr old_size, uptr new_size, int flags, 48 int internal_madvise(uptr addr, uptr length, int advice); 57 uptr internal_readlink(const char *path, char *buf, uptr bufsize); 73 uptr *oldlenp, const void *newp, uptr newlen); 116 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() 207 uptr mem = reinterpret_cast<uptr>(p); in GetBlockBegin() 287 uptr ComputeRegionId(uptr mem) const { in ComputeRegionId() 295 uptr ComputeRegionBeg(uptr mem) { in ComputeRegionBeg() [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 …]
|
| H A D | sanitizer_win.cpp | 270 uptr ReservedAddressRange::Map(uptr fixed_addr, uptr size, const char *name) { in Map() 274 uptr ReservedAddressRange::MapOrDie(uptr fixed_addr, uptr size, in MapOrDie() 305 uptr ReservedAddressRange::Init(uptr size, const char *name, uptr fixed_addr) { in Init() 334 bool MprotectNoAccess(uptr addr, uptr size) { in MprotectNoAccess() 339 void ReleaseMemoryPagesToOS(uptr beg, uptr end) { in ReleaseMemoryPagesToOS() 352 bool DontDumpShadowMemory(uptr addr, uptr length) { in DontDumpShadowMemory() 358 uptr MapDynamicShadow(uptr shadow_size_bytes, uptr shadow_scale, in MapDynamicShadow() 374 uptr FindAvailableMemoryRange(uptr size, uptr alignment, uptr left_padding, in FindAvailableMemoryRange() 396 uptr MapDynamicShadowAndAliases(uptr shadow_size, uptr alias_size, in MapDynamicShadowAndAliases() 663 uptr base_address = (uptr)mi.lpBaseOfDll; in init() [all …]
|
| /freebsd-13.1/contrib/llvm-project/compiler-rt/lib/lsan/ |
| H A D | lsan_common.h | 86 uptr hit_count; 95 uptr addr; 96 uptr size; 128 uptr begin; 129 uptr size; 145 void ForEachExtraStackRangeCb(uptr begin, uptr end, void* arg); 152 void ScanRangeForPointers(uptr begin, uptr end, 155 void ScanGlobalRange(uptr begin, uptr end, Frontier *frontier); 217 void GetAllocatorGlobalRange(uptr *begin, uptr *end); 228 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; 70 const uptr kAllocatorSpace = ~(uptr)0; 105 int lsan_posix_memalign(void **memptr, uptr alignment, uptr size, 107 void *lsan_aligned_alloc(uptr alignment, uptr size, const StackTrace &stack); 108 void *lsan_memalign(uptr alignment, uptr size, const StackTrace &stack); 112 void *lsan_reallocarray(void *p, uptr nmemb, uptr size, [all …]
|
| /freebsd-13.1/contrib/llvm-project/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() 248 static void *MsanCalloc(StackTrace *stack, uptr nmemb, uptr size) { in MsanCalloc() 269 void *msan_calloc(uptr nmemb, uptr size, StackTrace *stack) { in msan_calloc() 283 void *msan_reallocarray(void *ptr, uptr nmemb, uptr size, StackTrace *stack) { in msan_reallocarray() 310 void *msan_aligned_alloc(uptr alignment, uptr size, StackTrace *stack) { in msan_aligned_alloc() 320 void *msan_memalign(uptr alignment, uptr size, StackTrace *stack) { in msan_memalign() 330 int msan_posix_memalign(void **memptr, uptr alignment, uptr size, in msan_posix_memalign() [all …]
|