summaryrefslogtreecommitdiff
path: root/test/tsan/debug_alloc_stack.cc
AgeCommit message (Collapse)Author
2017-04-17[sanitizer] Introduce tid_t as a typedef for OS-provided thread IDsKuba Mracek
We seem to assume that OS-provided thread IDs are either uptr or int, neither of which is true on Darwin. This introduces a tid_t type, which holds a OS-provided thread ID (gettid on Linux, pthread_threadid_np on Darwin, pthread_self on FreeBSD). Differential Revision: https://reviews.llvm.org/D31774 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@300473 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-20Make this REQUIRES match the other REQUIRES lines that mention requiringChandler Carruth
a darwin system. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@290152 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-19Fixup for r290119: Only run debug_alloc_stack.cc on Darwin until I figure ↵Kuba Mracek
out how to make it work on Linux. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@290129 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-19More fixup for r290119: Make the ifdef work.Kuba Mracek
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@290126 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-19Another fix-up for r290119: Include stdint.h so we have uint64_t on Linux.Kuba Mracek
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@290124 91177308-0d34-0410-b5e6-96231b3b80d8
2016-12-19[tsan] Implement __tsan_get_alloc_stack and __tsan_locate_address to query ↵Kuba Mracek
pointer types and allocation stacks of heap pointers In ASan, we have __asan_locate_address and __asan_get_alloc_stack, which is used in LLDB/Xcode to show the allocation backtrace for a heap memory object. This patch implements the same for TSan. Differential Revision: https://reviews.llvm.org/D27656 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@290119 91177308-0d34-0410-b5e6-96231b3b80d8