diff options
| author | Evgenii Stepanov <eugenis@google.com> | 2019-10-18 17:17:48 -0700 |
|---|---|---|
| committer | Evgenii Stepanov <eugenis@google.com> | 2019-10-31 13:54:46 -0700 |
| commit | 13e04607f75bdf0e4de08b6f240501c15e8891f1 (patch) | |
| tree | 15fb9cffccb605fa9f7c83651ed4f23d88f8ada3 /compiler-rt/include | |
| parent | a0aef632086781d7c67ab3c7ff0bbd019a2ba6c8 (diff) | |
| download | bcm5719-llvm-13e04607f75bdf0e4de08b6f240501c15e8891f1.tar.gz bcm5719-llvm-13e04607f75bdf0e4de08b6f240501c15e8891f1.zip | |
[asan] Provide an interface to update an allocation stack trace.
Summary:
Sometimes an allocation stack trace is not very informative. Provide a
way to replace it with a stack trace of the user's choice.
Reviewers: pcc, kcc
Subscribers: #sanitizers, llvm-commits
Tags: #sanitizers, #llvm
Differential Revision: https://reviews.llvm.org/D69208
Diffstat (limited to 'compiler-rt/include')
| -rw-r--r-- | compiler-rt/include/sanitizer/asan_interface.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/include/sanitizer/asan_interface.h b/compiler-rt/include/sanitizer/asan_interface.h index ab2dc97ed24..6af93aad651 100644 --- a/compiler-rt/include/sanitizer/asan_interface.h +++ b/compiler-rt/include/sanitizer/asan_interface.h @@ -315,6 +315,10 @@ void *__asan_addr_is_in_fake_stack(void *fake_stack, void *addr, void **beg, /// functions like <c>_exit()</c> and <c>execl()</c>. void __asan_handle_no_return(void); +/// Update allocation stack trace for the given allocation to the current stack +/// trace. Returns 1 if successfull, 0 if not. +int __asan_update_allocation_context(void* addr); + #ifdef __cplusplus } // extern "C" #endif |

