summaryrefslogtreecommitdiff
path: root/lib/tsan/tests
Commit message (Collapse)AuthorAge
* tsan: move shadow stack from thread descriptors to fixed addressesDmitry Vyukov2013-10-16
| | | | | | | | | | This allows to increase max shadow stack size to 64K, and reliably catch shadow stack overflows instead of silently corrupting memory. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192797 91177308-0d34-0410-b5e6-96231b3b80d8
* [TSan] Use Clang to compile and link TSan unit tests with TSan runtimeAlexey Samsonov2013-09-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190503 91177308-0d34-0410-b5e6-96231b3b80d8
* [tsan] make calloc crash instead of returning 0 on overflow (controlled by ↵Kostya Serebryany2013-09-06
| | | | | | the allocator_may_return_null flag) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190135 91177308-0d34-0410-b5e6-96231b3b80d8
* [tsan] Move some suppressions-related code to common.Sergey Matveev2013-06-26
| | | | | | Factor out code to be reused in LSan. Also switch from linked list to vector. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184957 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] Move GetThreadStackAndTls from TSan to sanitizer_common.Sergey Matveev2013-05-07
| | | | | | | | Move this function to sanitizer_common because LSan uses it too. Also, fix a bug where the TLS range reported for main thread was off by the size of the thread descriptor from libc (TSan doesn't care much, but for LSan it's critical). git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181322 91177308-0d34-0410-b5e6-96231b3b80d8
* [TSan] Build TSan unit tests with the same compile flags as TSan runtimeAlexey Samsonov2013-03-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177859 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: fix incorrect test Dmitry Vyukov2013-03-20
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177519 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: smaller memory block headers (32b->16b)Dmitry Vyukov2013-03-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177312 91177308-0d34-0410-b5e6-96231b3b80d8
* [TSan] Add interceptor for malloc_usable_size()Alexey Samsonov2013-02-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@176013 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] extend internal libc with stat/fstat/lstat functionsAlexey Samsonov2013-02-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174316 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] make internal_open have the same interface as libc versionAlexey Samsonov2013-02-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174187 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: flip is_write bit in shadow to is_readDmitry Vyukov2013-02-01
| | | | | | | this makes calculation of interesting predicates faster git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174164 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: detect races between plain and atomic memory accessesDmitry Vyukov2013-02-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174163 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] update style checker script and fix namespace style warningsAlexey Samsonov2013-01-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173910 91177308-0d34-0410-b5e6-96231b3b80d8
* [sanitizer] fix calloc overflow in asan/tsan/msanKostya Serebryany2013-01-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173441 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: allow a front-end to provide default suppressionsDmitry Vyukov2013-01-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173345 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: implement malloc stats queryingDmitry Vyukov2013-01-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@173332 91177308-0d34-0410-b5e6-96231b3b80d8
* CMake variables renaming: X86_64->x86_64 I386->i386Alexey Samsonov2013-01-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@172812 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: exclude flaky testDmitry Vyukov2012-12-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169729 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: add mutexsets to reportsDmitry Vyukov2012-12-06
| | | | | | | | With this change reports say what mutexes the threads hold around the racy memory accesses. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169493 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: dynamic history sizeDmitry Vyukov2012-11-28
| | | | | | | introduces history_size parameter that can be used to control trace size at startup git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168786 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: change fast state layout in preparation to dynamic tracesDmitry Vyukov2012-11-28
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168784 91177308-0d34-0410-b5e6-96231b3b80d8
* tsan: move traces from tls into dedicated storage at fixed addressDmitry Vyukov2012-11-28
| | | | | | | | helps to reduce tls size (it's weird to have multi-MB tls) will help with dynamically adjustable trace size git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@168783 91177308-0d34-0410-b5e6-96231b3b80d8
* [Sanitizer] move unit test for Printf from tsan to sanitizer_commonAlexey Samsonov2012-11-02
| | | | git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167296 91177308-0d34-0410-b5e6-96231b3b80d8
* [TSan] s/uintptr_t/intptr_t in TSan test and enforce stack size limit in one ↵Alexey Samsonov2012-09-18
| | | | | | of TSan output tests that somewhy fails otherwise git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164116 91177308-0d34-0410-b5e6-96231b3b80d8
* [TSan] fix a typo in test dependencies. Silence few remaining pedantic gcc ↵Alexey Samsonov2012-09-18
| | | | | | warnings in TSan tests. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164115 91177308-0d34-0410-b5e6-96231b3b80d8
* [TSan] move: rtl_tests->tests/rtl unit_tests->tests/unit to make a single ↵Alexey Samsonov2012-09-17
root for gtest-based tests. Support running these tests from lit via check-tsan command. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164022 91177308-0d34-0410-b5e6-96231b3b80d8