| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_allocator_report.h | 23 const StackTrace *stack); 25 const StackTrace *stack); 26 void NORETURN ReportPvallocOverflow(uptr size, const StackTrace *stack); 28 const StackTrace *stack); 30 const StackTrace *stack); 32 const StackTrace *stack); 34 const StackTrace *stack); 35 void NORETURN ReportOutOfMemory(uptr requested_size, const StackTrace *stack); 36 void NORETURN ReportRssLimitExceeded(const StackTrace *stack);
|
| H A D | sanitizer_allocator_report.cpp | 24 const StackTrace *stack_) in ScopedAllocatorErrorReport() 39 const StackTrace* const stack; 44 const StackTrace *stack) { in ReportCallocOverflow() 55 const StackTrace *stack) { in ReportReallocArrayOverflow() 66 void NORETURN ReportPvallocOverflow(uptr size, const StackTrace *stack) { in ReportPvallocOverflow() 77 const StackTrace *stack) { in ReportInvalidAllocationAlignment() 87 const StackTrace *stack) { in ReportInvalidAlignedAllocAlignment() 105 const StackTrace *stack) { in ReportInvalidPosixMemalignAlignment() 119 const StackTrace *stack) { in ReportAllocationSizeTooBig() 128 void NORETURN ReportOutOfMemory(uptr requested_size, const StackTrace *stack) { in ReportOutOfMemory() [all …]
|
| H A D | sanitizer_stacktrace.h | 42 struct StackTrace { struct 52 StackTrace() : trace(nullptr), size(0), tag(0) {} in StackTrace() argument 53 StackTrace(const uptr *trace, u32 size) : trace(trace), size(size), tag(0) {} in StackTrace() argument 54 StackTrace(const uptr *trace, u32 size, u32 tag) in StackTrace() argument 85 uptr StackTrace::GetPreviousInstructionPc(uptr pc) { in GetPreviousInstructionPc() argument 109 struct BufferedStackTrace : public StackTrace { 113 BufferedStackTrace() : StackTrace(trace_buffer, 0), top_frame_bp(0) {} in BufferedStackTrace() 137 *static_cast<StackTrace *>(this) = StackTrace(trace_buffer, 0); in Reset() 191 uptr pc = StackTrace::GetCurrentPc() 217 # define GET_CURRENT_PC() StackTrace::GetCurrentPc()
|
| H A D | sanitizer_stackdepot.h | 37 u32 StackDepotPut(StackTrace stack); 38 StackDepotHandle StackDepotPut_WithHandle(StackTrace stack); 40 StackTrace StackDepotGet(u32 id);
|
| H A D | sanitizer_stacktrace_libcdep.cpp | 93 void StackTrace::PrintTo(InternalScopedString *output) const { in PrintTo() 120 uptr StackTrace::PrintTo(char *out_buf, uptr out_buf_size) const { in PrintTo() 130 void StackTrace::Print() const { in Print() 194 pc = StackTrace::GetPreviousInstructionPc(pc); in __sanitizer_symbolize_pc()
|
| H A D | sanitizer_stackdepot.cpp | 32 typedef StackTrace args_type; 208 u32 StackDepotPut(StackTrace stack) { return theDepot.Put(stack); } in StackDepotPut() 210 StackDepotHandle StackDepotPut_WithHandle(StackTrace stack) { in StackDepotPut_WithHandle() 214 StackTrace StackDepotGet(u32 id) { in StackDepotGet()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/tests/ |
| H A D | sanitizer_stackdepot_test.cpp | 40 StackTrace s1(array, ARRAY_SIZE(array)); in TEST_F() 42 StackTrace stack = StackDepotGet(i1); in TEST_F() 49 StackTrace stack = StackDepotGet((1 << 30) - 1); in TEST_F() 54 u32 i1 = StackDepotPut(StackTrace()); in TEST_F() 55 StackTrace stack = StackDepotGet(i1); in TEST_F() 60 StackTrace stack = StackDepotGet(0); in TEST_F() 66 StackTrace s1(array, ARRAY_SIZE(array)); in TEST_F() 70 StackTrace stack = StackDepotGet(i1); in TEST_F() 78 StackTrace s1(array1, ARRAY_SIZE(array1)); in TEST_F() 81 StackTrace s2(array2, ARRAY_SIZE(array2)); in TEST_F() [all …]
|
| H A D | sanitizer_stack_store_test.cpp | 36 StackTrace s(frames.data(), size, tag); in ForEachTrace() 82 ForEachTrace([&](const StackTrace& s) { in TEST_F() 88 ForEachTrace([&](const StackTrace& s) { in TEST_F() 89 StackTrace trace = store_.Load(*(id++)); in TEST_F() 100 ForEachTrace([&](const StackTrace& s) { in TEST_F() 114 [&](const StackTrace& s) { in TEST_F() 148 ForEachTrace([&](const StackTrace& s) { in TEST_P() 168 ForEachTrace([&](const StackTrace& s) { in TEST_P() 169 StackTrace trace = store_.Load(*(id++)); in TEST_P() 192 store_.Store(StackTrace(frames.data(), frames.size()), &pack); in TEST_P()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/lsan/ |
| H A D | lsan_allocator.h | 24 void *Allocate(const StackTrace &stack, uptr size, uptr alignment, 27 void *Reallocate(const StackTrace &stack, void *p, uptr new_size, 102 const StackTrace &stack); 103 void *lsan_aligned_alloc(uptr alignment, uptr size, const StackTrace &stack); 104 void *lsan_memalign(uptr alignment, uptr size, const StackTrace &stack); 105 void *lsan_malloc(uptr size, const StackTrace &stack); 107 void *lsan_realloc(void *p, uptr size, const StackTrace &stack); 109 const StackTrace &stack); 110 void *lsan_calloc(uptr nmemb, uptr size, const StackTrace &stack); 111 void *lsan_valloc(uptr size, const StackTrace &stack); [all …]
|
| H A D | lsan_allocator.cpp | 60 static void RegisterAllocation(const StackTrace &stack, void *p, uptr size) { in RegisterAllocation() 77 static void *ReportAllocationSizeTooBig(uptr size, const StackTrace &stack) { in ReportAllocationSizeTooBig() 85 void *Allocate(const StackTrace &stack, uptr size, uptr alignment, in Allocate() 111 static void *Calloc(uptr nmemb, uptr size, const StackTrace &stack) { in Calloc() 127 void *Reallocate(const StackTrace &stack, void *p, uptr new_size, in Reallocate() 157 const StackTrace &stack) { in lsan_posix_memalign() 172 void *lsan_aligned_alloc(uptr alignment, uptr size, const StackTrace &stack) { in lsan_aligned_alloc() 182 void *lsan_memalign(uptr alignment, uptr size, const StackTrace &stack) { in lsan_memalign() 192 void *lsan_malloc(uptr size, const StackTrace &stack) { in lsan_malloc() 200 void *lsan_realloc(void *p, uptr size, const StackTrace &stack) { in lsan_realloc() [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/hwasan/ |
| H A D | hwasan.h | 113 void *hwasan_malloc(uptr size, StackTrace *stack); 114 void *hwasan_calloc(uptr nmemb, uptr size, StackTrace *stack); 115 void *hwasan_realloc(void *ptr, uptr size, StackTrace *stack); 116 void *hwasan_reallocarray(void *ptr, uptr nmemb, uptr size, StackTrace *stack); 117 void *hwasan_valloc(uptr size, StackTrace *stack); 118 void *hwasan_pvalloc(uptr size, StackTrace *stack); 119 void *hwasan_aligned_alloc(uptr alignment, uptr size, StackTrace *stack); 120 void *hwasan_memalign(uptr alignment, uptr size, StackTrace *stack); 122 StackTrace *stack); 123 void hwasan_free(void *ptr, StackTrace *stack); [all …]
|
| H A D | hwasan_report.h | 24 void ReportTagMismatch(StackTrace *stack, uptr addr, uptr access_size, 26 void ReportInvalidFree(StackTrace *stack, uptr addr); 27 void ReportTailOverwritten(StackTrace *stack, uptr addr, uptr orig_size,
|
| H A D | hwasan_allocator.cpp | 163 static void *HwasanAllocate(StackTrace *stack, uptr orig_size, uptr alignment, in HwasanAllocate() 256 static bool CheckInvalidFree(StackTrace *stack, void *untagged_ptr, in CheckInvalidFree() 267 static void HwasanDeallocate(StackTrace *stack, void *tagged_ptr) { in HwasanDeallocate() 350 static void *HwasanReallocate(StackTrace *stack, void *tagged_ptr_old, in HwasanReallocate() 371 static void *HwasanCalloc(StackTrace *stack, uptr nmemb, uptr size) { in HwasanCalloc() 400 void *hwasan_malloc(uptr size, StackTrace *stack) { in hwasan_malloc() 404 void *hwasan_calloc(uptr nmemb, uptr size, StackTrace *stack) { in hwasan_calloc() 408 void *hwasan_realloc(void *ptr, uptr size, StackTrace *stack) { in hwasan_realloc() 418 void *hwasan_reallocarray(void *ptr, uptr nmemb, uptr size, StackTrace *stack) { in hwasan_reallocarray() 428 void *hwasan_valloc(uptr size, StackTrace *stack) { in hwasan_valloc() [all …]
|
| H A D | hwasan_malloc_bisect.h | 18 static u32 malloc_hash(StackTrace *stack, uptr orig_size) { in malloc_hash() 31 static inline bool malloc_bisect(StackTrace *stack, uptr orig_size) { in malloc_bisect()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/msan/ |
| H A D | msan.h | 237 void MsanDeallocate(StackTrace *stack, void *ptr); 239 void *msan_malloc(uptr size, StackTrace *stack); 240 void *msan_calloc(uptr nmemb, uptr size, StackTrace *stack); 241 void *msan_realloc(void *ptr, uptr size, StackTrace *stack); 242 void *msan_reallocarray(void *ptr, uptr nmemb, uptr size, StackTrace *stack); 243 void *msan_valloc(uptr size, StackTrace *stack); 244 void *msan_pvalloc(uptr size, StackTrace *stack); 245 void *msan_aligned_alloc(uptr alignment, uptr size, StackTrace *stack); 246 void *msan_memalign(uptr alignment, uptr size, StackTrace *stack); 248 StackTrace *stack); [all …]
|
| H A D | msan_allocator.cpp | 152 static void *MsanAllocate(StackTrace *stack, uptr size, uptr alignment, in MsanAllocate() 190 stack->tag = StackTrace::TAG_ALLOC; in MsanAllocate() 200 void MsanDeallocate(StackTrace *stack, void *p) { in MsanDeallocate() 213 stack->tag = StackTrace::TAG_DEALLOC; in MsanDeallocate() 229 static void *MsanReallocate(StackTrace *stack, void *old_p, uptr new_size, in MsanReallocate() 239 stack->tag = StackTrace::TAG_ALLOC; in MsanReallocate() 254 static void *MsanCalloc(StackTrace *stack, uptr nmemb, uptr size) { in MsanCalloc() 271 void *msan_malloc(uptr size, StackTrace *stack) { in msan_malloc() 275 void *msan_calloc(uptr nmemb, uptr size, StackTrace *stack) { in msan_calloc() 279 void *msan_realloc(void *ptr, uptr size, StackTrace *stack) { in msan_realloc() [all …]
|
| H A D | msan_poisoning.h | 31 void CopyOrigin(const void *dst, const void *src, uptr size, StackTrace *stack); 36 StackTrace *stack); 41 StackTrace *stack); 45 void CopyMemory(void *dst, const void *src, uptr size, StackTrace *stack); 54 void PoisonMemory(const void *dst, uptr size, StackTrace *stack);
|
| H A D | msan_report.cpp | 51 StackTrace(&pc, 1).Print(); in DescribeStackOrigin() 59 StackTrace stack; in DescribeOrigin() 70 StackTrace stack = o.getStackTraceForHeapOrigin(); in DescribeOrigin() 72 case StackTrace::TAG_ALLOC: in DescribeOrigin() 76 case StackTrace::TAG_DEALLOC: in DescribeOrigin() 100 void ReportUMR(StackTrace *stack, u32 origin) { in ReportUMR() 116 void ReportExpectedUMRNotFound(StackTrace *stack) { in ReportExpectedUMRNotFound()
|
| H A D | msan_origin.h | 85 Origin getNextChainedOrigin(StackTrace *stack) const { in getNextChainedOrigin() 93 StackTrace getStackTraceForHeapOrigin() const { in getStackTraceForHeapOrigin() 102 static Origin CreateHeapOrigin(StackTrace *stack) { in CreateHeapOrigin() 109 static Origin CreateChainedOrigin(Origin prev, StackTrace *stack) { in CreateChainedOrigin()
|
| H A D | msan_poisoning.cpp | 44 StackTrace *stack) { in CopyOrigin() 99 StackTrace *stack) { in ReverseCopyOrigin() 155 StackTrace *stack) { in MoveOrigin() 168 StackTrace *stack) { in MoveShadowAndOrigin() 181 StackTrace *stack) { in CopyShadowAndOrigin() 192 void CopyMemory(void *dst, const void *src, uptr size, StackTrace *stack) { in CopyMemory() 241 void PoisonMemory(const void *dst, uptr size, StackTrace *stack) { in PoisonMemory()
|
| H A D | msan_report.h | 23 void ReportUMR(StackTrace *stack, u32 origin); 24 void ReportExpectedUMRNotFound(StackTrace *stack);
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/gwp_asan/optional/ |
| H A D | backtrace_sanitizer_common.cpp | 25 if (!StackTrace::WillUseFastUnwind(request_fast)) in UnwindImpl() 66 __sanitizer::StackTrace StackTrace; in PrintBacktrace() local 67 StackTrace.trace = reinterpret_cast<__sanitizer::uptr *>(Trace); in PrintBacktrace() 68 StackTrace.size = TraceLength; in PrintBacktrace() 70 if (StackTrace.size == 0) { in PrintBacktrace() 76 StackTrace.PrintTo(&buffer); in PrintBacktrace()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/tsan/tests/unit/ |
| H A D | tsan_stack_test.cpp | 65 TEST(StackTrace, BasicVarSize) { in TEST() argument 70 TEST(StackTrace, BasicBuffered) { in TEST() argument 75 TEST(StackTrace, TrimVarSize) { in TEST() argument 80 TEST(StackTrace, TrimBuffered) { in TEST() argument
|
| /openbsd-src/gnu/llvm/llvm/lib/Support/Unix/ |
| H A D | Signals.inc | 470 void **StackTrace; 491 intptr_t addr = (intptr_t)data->StackTrace[j]; 503 static bool findModulesAndOffsets(void **StackTrace, int Depth, 507 DlIteratePhdrData data = {StackTrace, Depth, true, 515 static bool findModulesAndOffsets(void **StackTrace, int Depth, 524 static int unwindBacktrace(void **StackTrace, int MaxEntries) { 539 StackTrace[Entries] = IP; 562 static void *StackTrace[256]; 567 depth = backtrace(StackTrace, static_cast<int>(std::size(StackTrace))); 573 unwindBacktrace(StackTrace, static_cast<int>(std::size(StackTrace))); [all …]
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/memprof/ |
| H A D | memprof_stack.h | 41 stack.trace_buffer[0] = StackTrace::GetCurrentPc(); \ 46 stack.Unwind(StackTrace::GetCurrentPc(), GET_CURRENT_FRAME(), nullptr, \
|