summaryrefslogtreecommitdiff
path: root/lib/tsan
AgeCommit message (Collapse)Author
2012-09-18[TSan] port all output tests to lit and move them to lit_tests directory. ↵Alexey Samsonov
This makes 'make check-tsan' command test both unit and output TSan tests. Old custom makefiles for running TSan tests are still functional as well. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164110 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-17[TSan] move: rtl_tests->tests/rtl unit_tests->tests/unit to make a single ↵Alexey Samsonov
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
2012-09-17[TSan] If we detect an unlimited stack, try to re-exec with limited stackAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164021 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-17tsan: increase internal memory block limit 1GB->4GBDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@164011 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-13[TSan] support building TSan unittests in CMakeAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163797 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-13[TSan] fix a typo in CMakeListsAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163796 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-13[TSan] Use interface attribute for weak functions that may be overriden by userAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163795 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-13[TSan] Add initial support for buidling ThreadSanitizer runtime library with ↵Alexey Samsonov
CMake (currently the only supported platfrom is 64-bit Linux). This patch makes 'clang++ -fthread-sanitizer' work for both clang in the build tree and installed clang git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163789 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-13[TSan] fix a bunch of warnings reported by pedantic gccAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163788 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-11Revert the lockf() support. Alexander Potapenko
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163614 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-11[Sanitizer] Get rid of dependency between sanitizer_common and asan/tsan ↵Alexey Samsonov
runtimes: implement tool-specific Die and CheckFailed functions via callbacks git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163603 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-11Interceptors for lockf and lockf64, minor calloc() fix.Alexander Potapenko
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163602 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-07tsan: ignore destruction of global mutexes (causes a lot of non-interesting ↵Dmitry Vyukov
reports) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163400 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-06tsan: fix code styleDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163326 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-06tsan: increase max shadow stack size + reduce memory consumption at the same ↵Dmitry Vyukov
time (by not memorizing full stacks in traces) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163322 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-06tsan: fix Go build scriptDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163320 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-06[TSan] add support for running external symbolizer other than addr2line (for ↵Alexey Samsonov
testing purposes) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163297 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-05[Sanitizer] Remove implicit conversion of InternalScopedBuffer<T> to T*Alexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163197 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-02tsan: do not crash with obscure message if a user passes invalid arguments ↵Dmitry Vyukov
to malloc/free/memset/etc git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163092 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-02tsan: insert cfi directives into assembly (not fully working for now, though)Dmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163090 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-02tsan: more robust current thread stack restorationDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163089 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-01tsan: better diagnostics for mutex misuseDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163060 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31tsan: fix crash when users pass insane mutex addresses in dynamic annotationsDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163016 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31tsan: add "as if synchronized via sleep" featureDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163006 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31tsan: slightly optimize mutex unlock Dmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162995 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31tsan: more precise handling of atomic_store(memory_order_release)Dmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162994 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31[Sanitizer] Remove lint checkers from our old makefiles in favor of buildbotAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162981 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31[TSan] Fix style warinings in output testAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162980 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-30Whitespace/lintAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162909 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-30tsan: simplify TSAN_HISTORY_SIZE codeDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162905 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-30tsan: use stack depot to describe heap blocksDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162902 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-29[tsan] fix tsan's Makefile.old -- our build bot still uses it (hopefully, ↵Kostya Serebryany
will soon migrate to cmake completely) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162832 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-27[Sanitizer] Rename ProcessMaps to MemoryMappingLayout and fix Windows build ↵Alexey Samsonov
by providing stub implementation git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162671 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-23tsan: allow to override per-thread event trace sizeDmitry Vyukov
useful if you don't see the second stack trace git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162456 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-22[TSan] switch tsan to using InternalScopedBuffer from sanitizer_commonAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162351 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-18tsan: proper handling of linker initialized mutexesDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162169 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-17tsan: Non-executable stack for hand-coded assemblyDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162112 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-16tsan: improve Go report format + fix buildDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162042 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-16tsan: add flag to disable reporting of destruction of locked mutexes (some ↵Dmitry Vyukov
programs use that on a regular basis) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162024 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-16tsan: better diagnostics for destroy of a locked mutex + a testDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162022 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-16tsan: support for linker initializer mutexes with static storage durationDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162021 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-16tsan: fix COMPAT shadow mapping once againDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162020 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-16tsan: implement RWLOCK annotationsDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162019 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-16tsan: fix COMPAT shadow mapping for new memory allocatorDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162018 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-16tsan: refactor cur_thread() -> thrDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162017 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-15tsan: store sync objects in memory block headers + delete them when the ↵Dmitry Vyukov
block is freed git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161959 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-15tsan: provide function that imitates write to a region but does not detect racesDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161957 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-15tsan: switch to new allocatorDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161953 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-13tsan: handle larger number of goroutines + fix a memory leak of goroutine ↵Dmitry Vyukov
descriptors git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161770 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-12tsan: fix parameter type for pwrite64() interceptorDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161741 91177308-0d34-0410-b5e6-96231b3b80d8