[asan] Provide an interface to update an allocation stack trace.
authorEvgenii Stepanov <eugenis@google.com>
Sat, 19 Oct 2019 00:17:48 +0000 (17:17 -0700)
committerEvgenii Stepanov <eugenis@google.com>
Thu, 31 Oct 2019 20:54:46 +0000 (13:54 -0700)
commit13e04607f75bdf0e4de08b6f240501c15e8891f1
tree15fb9cffccb605fa9f7c83651ed4f23d88f8ada3
parenta0aef632086781d7c67ab3c7ff0bbd019a2ba6c8
[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
compiler-rt/include/sanitizer/asan_interface.h
compiler-rt/lib/asan/asan_allocator.cpp
compiler-rt/lib/asan/asan_interface.inc
compiler-rt/lib/asan/asan_interface_internal.h
compiler-rt/test/asan/TestCases/asan_update_allocation.cpp [new file with mode: 0644]