/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/tests/ |
H A D | sanitizer_stackdepot_test.cc | 22 StackTrace s1(array, ARRAY_SIZE(array)); in TEST() 24 StackTrace stack = StackDepotGet(i1); in TEST() 31 StackTrace stack = StackDepotGet((1 << 30) - 1); in TEST() 36 u32 i1 = StackDepotPut(StackTrace()); in TEST() 37 StackTrace stack = StackDepotGet(i1); in TEST() 42 StackTrace stack = StackDepotGet(0); in TEST() 48 StackTrace s1(array, ARRAY_SIZE(array)); in TEST() 52 StackTrace stack = StackDepotGet(i1); in TEST() 60 StackTrace s1(array1, ARRAY_SIZE(array1)); in TEST() 63 StackTrace s2(array2, ARRAY_SIZE(array2)); in TEST() [all …]
|
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/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() function 53 StackTrace(const uptr *trace, u32 size) : trace(trace), size(size), tag(0) {} in StackTrace() function 54 StackTrace(const uptr *trace, u32 size, u32 tag) in StackTrace() argument 85 uptr StackTrace::GetPreviousInstructionPc(uptr pc) { in GetPreviousInstructionPc() argument 110 struct BufferedStackTrace : public StackTrace { 114 BufferedStackTrace() : StackTrace(trace_buffer, 0), top_frame_bp(0) {} in BufferedStackTrace() 138 *static_cast<StackTrace *>(this) = StackTrace(trace_buffer, 0); in Reset() 192 uptr pc = StackTrace::GetCurrentPc() 218 # define GET_CURRENT_PC() StackTrace::GetCurrentPc()
|
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/lsan/ |
H A D | lsan_allocator.h | 23 void *Allocate(const StackTrace &stack, uptr size, uptr alignment, 26 void *Reallocate(const StackTrace &stack, void *p, uptr new_size, 103 const StackTrace &stack); 104 void *lsan_aligned_alloc(uptr alignment, uptr size, const StackTrace &stack); 105 void *lsan_memalign(uptr alignment, uptr size, const StackTrace &stack); 106 void *lsan_malloc(uptr size, const StackTrace &stack); 108 void *lsan_realloc(void *p, uptr size, const StackTrace &stack); 109 void *lsan_calloc(uptr nmemb, uptr size, const StackTrace &stack); 110 void *lsan_valloc(uptr size, const StackTrace &stack); 111 void *lsan_pvalloc(uptr size, const StackTrace &stack);
|
H A D | lsan_allocator.cc | 57 static void RegisterAllocation(const StackTrace &stack, void *p, uptr size) { in RegisterAllocation() 74 static void *ReportAllocationSizeTooBig(uptr size, const StackTrace &stack) { in ReportAllocationSizeTooBig() 82 void *Allocate(const StackTrace &stack, uptr size, uptr alignment, in Allocate() 104 static void *Calloc(uptr nmemb, uptr size, const StackTrace &stack) { in Calloc() 121 void *Reallocate(const StackTrace &stack, void *p, uptr new_size, in Reallocate() 145 const StackTrace &stack) { in lsan_posix_memalign() 160 void *lsan_aligned_alloc(uptr alignment, uptr size, const StackTrace &stack) { in lsan_aligned_alloc() 170 void *lsan_memalign(uptr alignment, uptr size, const StackTrace &stack) { in lsan_memalign() 180 void *lsan_malloc(uptr size, const StackTrace &stack) { in lsan_malloc() 188 void *lsan_realloc(void *p, uptr size, const StackTrace &stack) { in lsan_realloc() [all …]
|
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/ |
H A D | sanitizer_allocator_report.cc | 23 const StackTrace *stack_) in ScopedAllocatorErrorReport() 38 const StackTrace* const stack; 43 const StackTrace *stack) { in ReportCallocOverflow() 53 void NORETURN ReportPvallocOverflow(uptr size, const StackTrace *stack) { in ReportPvallocOverflow() 64 const StackTrace *stack) { in ReportInvalidAllocationAlignment() 74 const StackTrace *stack) { in ReportInvalidAlignedAllocAlignment() 92 const StackTrace *stack) { in ReportInvalidPosixMemalignAlignment() 105 const StackTrace *stack) { in ReportAllocationSizeTooBig() 114 void NORETURN ReportOutOfMemory(uptr requested_size, const StackTrace *stack) { in ReportOutOfMemory()
|
H A D | sanitizer_allocator_report.h | 22 const StackTrace *stack); 23 void NORETURN ReportPvallocOverflow(uptr size, const StackTrace *stack); 25 const StackTrace *stack); 27 const StackTrace *stack); 29 const StackTrace *stack); 31 const StackTrace *stack); 32 void NORETURN ReportOutOfMemory(uptr requested_size, const StackTrace *stack);
|
H A D | sanitizer_stacktrace.h | 39 struct StackTrace { struct 49 StackTrace() : trace(nullptr), size(0), tag(0) {} in StackTrace() argument 50 StackTrace(const uptr *trace, u32 size) : trace(trace), size(size), tag(0) {} in StackTrace() argument 51 StackTrace(const uptr *trace, u32 size, u32 tag) in StackTrace() argument 74 uptr StackTrace::GetPreviousInstructionPc(uptr pc) { in GetPreviousInstructionPc() argument 91 struct BufferedStackTrace : public StackTrace { 95 BufferedStackTrace() : StackTrace(trace_buffer, 0), top_frame_bp(0) {} in BufferedStackTrace() 102 *static_cast<StackTrace *>(this) = StackTrace(trace_buffer, 0); in Reset() 142 uptr pc = StackTrace::GetCurrentPc(); \
|
H A D | sanitizer_stackdepot.cc | 35 typedef StackTrace args_type; 109 u32 StackDepotPut(StackTrace stack) { in StackDepotPut() 114 StackDepotHandle StackDepotPut_WithHandle(StackTrace stack) { in StackDepotPut_WithHandle() 118 StackTrace StackDepotGet(u32 id) { in StackDepotGet() 150 StackTrace StackDepotReverseMap::Get(u32 id) { in Get() 152 return StackTrace(); in Get() 157 return StackTrace(); in Get()
|
H A D | sanitizer_stackdepot.h | 36 u32 StackDepotPut(StackTrace stack); 37 StackDepotHandle StackDepotPut_WithHandle(StackTrace stack); 39 StackTrace StackDepotGet(u32 id); 51 StackTrace Get(u32 id);
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
H A D | sanitizer_allocator_report.cc | 25 const StackTrace *stack_) in ScopedAllocatorErrorReport() 40 const StackTrace* const stack; 45 const StackTrace *stack) { in ReportCallocOverflow() 55 void NORETURN ReportPvallocOverflow(uptr size, const StackTrace *stack) { in ReportPvallocOverflow() 66 const StackTrace *stack) { in ReportInvalidAllocationAlignment() 76 const StackTrace *stack) { in ReportInvalidAlignedAllocAlignment() 94 const StackTrace *stack) { in ReportInvalidPosixMemalignAlignment() 107 const StackTrace *stack) { in ReportAllocationSizeTooBig() 116 void NORETURN ReportOutOfMemory(uptr requested_size, const StackTrace *stack) { in ReportOutOfMemory()
|
H A D | sanitizer_allocator_report.h | 24 const StackTrace *stack); 25 void NORETURN ReportPvallocOverflow(uptr size, const StackTrace *stack); 27 const StackTrace *stack); 29 const StackTrace *stack); 31 const StackTrace *stack); 33 const StackTrace *stack); 34 void NORETURN ReportOutOfMemory(uptr requested_size, const StackTrace *stack);
|
H A D | sanitizer_stacktrace.h | 41 struct StackTrace { struct 51 StackTrace() : trace(nullptr), size(0), tag(0) {} in StackTrace() argument 52 StackTrace(const uptr *trace, u32 size) : trace(trace), size(size), tag(0) {} in StackTrace() function 53 StackTrace(const uptr *trace, u32 size, u32 tag) in StackTrace() argument 76 uptr StackTrace::GetPreviousInstructionPc(uptr pc) { in GetPreviousInstructionPc() argument 93 struct BufferedStackTrace : public StackTrace { 97 BufferedStackTrace() : StackTrace(trace_buffer, 0), top_frame_bp(0) {} in BufferedStackTrace() 104 *static_cast<StackTrace *>(this) = StackTrace(trace_buffer, 0); in Reset() 144 uptr pc = StackTrace::GetCurrentPc(); \
|
H A D | sanitizer_stackdepot.cc | 37 typedef StackTrace args_type; 111 u32 StackDepotPut(StackTrace stack) { in StackDepotPut() 116 StackDepotHandle StackDepotPut_WithHandle(StackTrace stack) { in StackDepotPut_WithHandle() 120 StackTrace StackDepotGet(u32 id) { in StackDepotGet() 152 StackTrace StackDepotReverseMap::Get(u32 id) { in Get() 154 return StackTrace(); in Get() 159 return StackTrace(); in Get()
|
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/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, 116 const StackTrace &stack); 117 void *lsan_aligned_alloc(uptr alignment, uptr size, const StackTrace &stack); 118 void *lsan_memalign(uptr alignment, uptr size, const StackTrace &stack); 119 void *lsan_malloc(uptr size, const StackTrace &stack); 121 void *lsan_realloc(void *p, uptr size, const StackTrace &stack); 123 const StackTrace &stack); 124 void *lsan_calloc(uptr nmemb, uptr size, const StackTrace &stack); 125 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() 107 static void *Calloc(uptr nmemb, uptr size, const StackTrace &stack) { in Calloc() 124 void *Reallocate(const StackTrace &stack, void *p, uptr new_size, in Reallocate() 152 const StackTrace &stack) { in lsan_posix_memalign() 167 void *lsan_aligned_alloc(uptr alignment, uptr size, const StackTrace &stack) { in lsan_aligned_alloc() 177 void *lsan_memalign(uptr alignment, uptr size, const StackTrace &stack) { in lsan_memalign() 187 void *lsan_malloc(uptr size, const StackTrace &stack) { in lsan_malloc() 195 void *lsan_realloc(void *p, uptr size, const StackTrace &stack) { in lsan_realloc() [all …]
|
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/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_allocator.cpp | 125 static void *HwasanAllocate(StackTrace *stack, uptr orig_size, uptr alignment, in HwasanAllocate() 211 static bool CheckInvalidFree(StackTrace *stack, void *untagged_ptr, in CheckInvalidFree() 222 static void HwasanDeallocate(StackTrace *stack, void *tagged_ptr) { in HwasanDeallocate() 305 static void *HwasanReallocate(StackTrace *stack, void *tagged_ptr_old, in HwasanReallocate() 326 static void *HwasanCalloc(StackTrace *stack, uptr nmemb, uptr size) { in HwasanCalloc() 361 void *hwasan_malloc(uptr size, StackTrace *stack) { in hwasan_malloc() 365 void *hwasan_calloc(uptr nmemb, uptr size, StackTrace *stack) { in hwasan_calloc() 369 void *hwasan_realloc(void *ptr, uptr size, StackTrace *stack) { in hwasan_realloc() 379 void *hwasan_reallocarray(void *ptr, uptr nmemb, uptr size, StackTrace *stack) { in hwasan_reallocarray() 389 void *hwasan_valloc(uptr size, StackTrace *stack) { in hwasan_valloc() [all …]
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/lsan/ |
H A D | lsan_allocator.h | 25 void *Allocate(const StackTrace &stack, uptr size, uptr alignment, 28 void *Reallocate(const StackTrace &stack, void *p, uptr new_size, 120 const StackTrace &stack); 121 void *lsan_aligned_alloc(uptr alignment, uptr size, const StackTrace &stack); 122 void *lsan_memalign(uptr alignment, uptr size, const StackTrace &stack); 123 void *lsan_malloc(uptr size, const StackTrace &stack); 125 void *lsan_realloc(void *p, uptr size, const StackTrace &stack); 126 void *lsan_calloc(uptr nmemb, uptr size, const StackTrace &stack); 127 void *lsan_valloc(uptr size, const StackTrace &stack); 128 void *lsan_pvalloc(uptr size, const StackTrace &stack);
|
H A D | lsan_allocator.cc | 54 static void RegisterAllocation(const StackTrace &stack, void *p, uptr size) { in RegisterAllocation() 71 static void *ReportAllocationSizeTooBig(uptr size, const StackTrace &stack) { in ReportAllocationSizeTooBig() 79 void *Allocate(const StackTrace &stack, uptr size, uptr alignment, in Allocate() 101 static void *Calloc(uptr nmemb, uptr size, const StackTrace &stack) { in Calloc() 118 void *Reallocate(const StackTrace &stack, void *p, uptr new_size, in Reallocate() 142 const StackTrace &stack) { in lsan_posix_memalign() 157 void *lsan_aligned_alloc(uptr alignment, uptr size, const StackTrace &stack) { in lsan_aligned_alloc() 167 void *lsan_memalign(uptr alignment, uptr size, const StackTrace &stack) { in lsan_memalign() 177 void *lsan_malloc(uptr size, const StackTrace &stack) { in lsan_malloc() 185 void *lsan_realloc(void *p, uptr size, const StackTrace &stack) { in lsan_realloc() [all …]
|
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/msan/ |
H A D | msan_allocator.cc | 144 static void *MsanAllocate(StackTrace *stack, uptr size, uptr alignment, in MsanAllocate() 177 stack->tag = StackTrace::TAG_ALLOC; in MsanAllocate() 186 void MsanDeallocate(StackTrace *stack, void *p) { in MsanDeallocate() 197 stack->tag = StackTrace::TAG_DEALLOC; in MsanDeallocate() 213 void *MsanReallocate(StackTrace *stack, void *old_p, uptr new_size, in MsanReallocate() 223 stack->tag = StackTrace::TAG_ALLOC; in MsanReallocate() 238 void *MsanCalloc(StackTrace *stack, uptr nmemb, uptr size) { in MsanCalloc() 255 void *msan_malloc(uptr size, StackTrace *stack) { in msan_malloc() 259 void *msan_calloc(uptr nmemb, uptr size, StackTrace *stack) { in msan_calloc() 263 void *msan_realloc(void *ptr, uptr size, StackTrace *stack) { in msan_realloc() [all …]
|
H A D | msan.h | 287 void MsanDeallocate(StackTrace *stack, void *ptr); 289 void *msan_malloc(uptr size, StackTrace *stack); 290 void *msan_calloc(uptr nmemb, uptr size, StackTrace *stack); 291 void *msan_realloc(void *ptr, uptr size, StackTrace *stack); 292 void *msan_valloc(uptr size, StackTrace *stack); 293 void *msan_pvalloc(uptr size, StackTrace *stack); 294 void *msan_aligned_alloc(uptr alignment, uptr size, StackTrace *stack); 295 void *msan_memalign(uptr alignment, uptr size, StackTrace *stack); 297 StackTrace *stack); 325 u32 ChainOrigin(u32 id, StackTrace *stack); [all …]
|
H A D | msan_poisoning.h | 32 void CopyOrigin(const void *dst, const void *src, uptr size, StackTrace *stack); 37 StackTrace *stack); 42 StackTrace *stack); 46 void CopyMemory(void *dst, const void *src, uptr size, StackTrace *stack); 55 void PoisonMemory(const void *dst, uptr size, StackTrace *stack);
|
H A D | msan_report.cc | 55 pc = StackTrace::GetNextInstructionPc(pc); in DescribeStackOrigin() 56 StackTrace(&pc, 1).Print(); in DescribeStackOrigin() 65 StackTrace stack; in DescribeOrigin() 76 StackTrace stack = o.getStackTraceForHeapOrigin(); in DescribeOrigin() 78 case StackTrace::TAG_ALLOC: in DescribeOrigin() 82 case StackTrace::TAG_DEALLOC: in DescribeOrigin() 99 void ReportUMR(StackTrace *stack, u32 origin) { in ReportUMR() 115 void ReportExpectedUMRNotFound(StackTrace *stack) { in ReportExpectedUMRNotFound()
|