diff options
author | Kuba Mracek <mracek@apple.com> | 2017-04-30 20:35:18 +0000 |
---|---|---|
committer | Kuba Mracek <mracek@apple.com> | 2017-04-30 20:35:18 +0000 |
commit | aa1c977562f63984d19f8c1fc97adb94b9e493eb (patch) | |
tree | 05e4736196fce2bd67c3b11d8020c095626827bc /include | |
parent | fce320da7a80b1b0f2d1228b9be6a83280315d40 (diff) |
[tsan] Track external tags in thread traces
To make the TSan external API work with Swift and other use cases, we need to track "tags" for individual memory accesses. Since there is no space to store this information in shadow cells, let's use the thread traces for that. This patch stores the tag as an extra frame in the stack traces (by calling FuncEntry and FuncExit with the address of a registered tag), this extra frame is then stripped before printing the backtrace to stderr.
Differential Revision: https://reviews.llvm.org/D32382
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@301777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions