Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | tsan: fix crash when a program registers zillions of atexit callbacks | Dmitry Vyukov | 2014-09-17 | 1 | -3/+3 | |
| | | | | | | | | | | I don't remember that crash on mmap in internal allocator ever yielded anything useful, only crashes in rare wierd untested situations. One of the reasons for crash was to catch if tsan starts allocating clocks using mmap. Tsan does not allocate clocks using internal_alloc anymore. Solve it once and for all by allowing mmaps. llvm-svn: 217929 | |||||
* | Make compiler-rt tests work with relocatable SDKs on OS X | Kuba Brecka | 2014-09-10 | 1 | -0/+2 | |
| | | | | | | Reviewed at http://reviews.llvm.org/D4047 llvm-svn: 217523 | |||||
* | Fixup test case after r217079 | Alexey Samsonov | 2014-09-03 | 1 | -2/+2 | |
| | | | | llvm-svn: 217111 | |||||
* | tsan: address comments in r214912 | Dmitry Vyukov | 2014-09-02 | 1 | -2/+2 | |
| | | | | | | See http://reviews.llvm.org/D4794 llvm-svn: 216900 | |||||
* | Fixup Android tests build rules | Alexey Samsonov | 2014-08-09 | 1 | -1/+1 | |
| | | | | llvm-svn: 215264 | |||||
* | [UBSan] Allow to suppress reports from vptr checker for specified types. | Alexey Samsonov | 2014-08-05 | 1 | -2/+4 | |
| | | | | | | Based on http://reviews.llvm.org/D4702 by Byoungyoung Lee! llvm-svn: 214833 | |||||
* | Exclude Android from the tests for valloc/pvalloc. | Dan Albert | 2014-06-14 | 1 | -1/+2 | |
| | | | | | | | These functions are being removed from Android because they were removed from POSIX 2004. llvm-svn: 210962 | |||||
* | [sanitizer] Relax sanity checks in ioctl decoding. | Evgeniy Stepanov | 2014-06-10 | 1 | -0/+25 | |
| | | | | | | Standard KVM ioctls don't pass currect ioctl_decode(). llvm-svn: 210533 | |||||
* | [asan] Use -pthread instead of -lpthread in tests. | Evgeniy Stepanov | 2014-06-05 | 1 | -1/+1 | |
| | | | | llvm-svn: 210255 | |||||
* | tsan: optimize memory access functions | Dmitry Vyukov | 2014-05-30 | 1 | -0/+5 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The optimization is two-fold: First, the algorithm now uses SSE instructions to handle all 4 shadow slots at once. This makes processing faster. Second, if shadow contains the same access, we do not store the event into trace. This increases effective trace size, that is, tsan can remember up to 10x more previous memory accesses. Perofrmance impact: Before: [ OK ] DISABLED_BENCH.Mop8Read (2461 ms) [ OK ] DISABLED_BENCH.Mop8Write (1836 ms) After: [ OK ] DISABLED_BENCH.Mop8Read (1204 ms) [ OK ] DISABLED_BENCH.Mop8Write (976 ms) But this measures only fast-path. On large real applications the speedup is ~20%. Trace size impact: On app1: Memory accesses : 1163265870 Including same : 791312905 (68%) on app2: Memory accesses : 166875345 Including same : 150449689 (90%) 90% of filtered events means that trace size is effectively 10x larger. llvm-svn: 209897 | |||||
* | [Sanitizers Win] Move duplicate Windows-specific compiler flags to a common ↵ | Timur Iskhodzhanov | 2014-05-30 | 1 | -15/+1 | |
| | | | | | | | | CMake variable Reviewed at http://reviews.llvm.org/D3952 llvm-svn: 209889 | |||||
* | [sanitizer] Update flags test. | Evgeniy Stepanov | 2014-05-29 | 1 | -2/+2 | |
| | | | | llvm-svn: 209818 | |||||
* | Fix building 32-bit common sanitizer tests on FreeBSD 9.2 | Viktor Kutuzov | 2014-05-29 | 1 | -2/+3 | |
| | | | | llvm-svn: 209804 | |||||
* | [ASan/Win] Use clang rather than clang-cl by default for lit tests. Make ↵ | Timur Iskhodzhanov | 2014-05-28 | 1 | -10/+10 | |
| | | | | | | | | Windows-only tests explicitly use clang-cl. Reviewed at http://reviews.llvm.org/D3893 llvm-svn: 209719 | |||||
* | [Sanitizer tests] Don't need to use -lstdc++ thanks to --driver-mode=g++ | Timur Iskhodzhanov | 2014-05-19 | 1 | -1/+4 | |
| | | | | | | Reviewed at http://reviews.llvm.org/D3796 llvm-svn: 209115 | |||||
* | [Sanitizer tests] Exclude three tests that fail on Windows | Timur Iskhodzhanov | 2014-05-13 | 2 | -0/+7 | |
| | | | | llvm-svn: 208698 | |||||
* | [Sanitizer tests] Land the sanitizer twin of the asan-only change r208682 | Timur Iskhodzhanov | 2014-05-13 | 1 | -2/+28 | |
| | | | | llvm-svn: 208697 | |||||
* | [Sanitizer tests] Add sanitizer_test_config.h to make the inclusion of ↵ | Timur Iskhodzhanov | 2014-05-13 | 4 | -2/+37 | |
| | | | | | | | | gtest.h conditional Reviewed at http://reviews.llvm.org/D3744 llvm-svn: 208696 | |||||
* | [Sanitizer/ASan tests] Automatically detect the presence of libstdc++ | Timur Iskhodzhanov | 2014-05-13 | 1 | -2/+1 | |
| | | | | llvm-svn: 208695 | |||||
* | [Sanitizer tests] Fix most of the build problems on Windows | Timur Iskhodzhanov | 2014-05-13 | 7 | -19/+40 | |
| | | | | | | E.g. use the pthread helpers introduced in r208674 llvm-svn: 208692 | |||||
* | [Sanitizer tests] Make simple pthread tests compile and pass on Windows | Timur Iskhodzhanov | 2014-05-13 | 3 | -0/+77 | |
| | | | | | | Reviewed at http://reviews.llvm.org/D3725 llvm-svn: 208674 | |||||
* | [Sanitizer tests] Fix a comment that got out of sync with the #if | Timur Iskhodzhanov | 2014-05-12 | 1 | -2/+2 | |
| | | | | llvm-svn: 208602 | |||||
* | [ASan tests] Use the proper attribute on RunStrChrTest helper functions to ↵ | Timur Iskhodzhanov | 2014-05-12 | 1 | -3/+9 | |
| | | | | | | avoid "unused function" warnings llvm-svn: 208568 | |||||
* | [ASan] Update sanitizer_common and asan test_util headers to support ↵ | Timur Iskhodzhanov | 2014-05-08 | 1 | -11/+6 | |
| | | | | | | building on Windows llvm-svn: 208306 | |||||
* | [Sanitizer] Add rudimentary support for wide-character strings to ↵ | Alexey Samsonov | 2014-04-28 | 1 | -0/+7 | |
| | | | | | | scanf/printf interceptors llvm-svn: 207443 | |||||
* | Fix building Asan and common sanitizers tests on FreeBSD 9.2 | Viktor Kutuzov | 2014-04-28 | 1 | -0/+4 | |
| | | | | llvm-svn: 207408 | |||||
* | [sanitizer] speed up the bitvector-based deadlock detector by ~15% (iterate ↵ | Kostya Serebryany | 2014-03-31 | 1 | -4/+6 | |
| | | | | | | over the currently held locks using the array, not the bitvector. Bitvector is not the best data structure to iterate over) llvm-svn: 205168 | |||||
* | [CMake] Rename the variable | Alexey Samsonov | 2014-03-24 | 1 | -1/+1 | |
| | | | | llvm-svn: 204602 | |||||
* | [CMake] Respect CMAKE_CXX_FLAGS in custom clang_compile commands | Alexey Samsonov | 2014-03-24 | 1 | -2/+3 | |
| | | | | llvm-svn: 204593 | |||||
* | [sanitizer] print threads in deadlock report | Kostya Serebryany | 2014-03-21 | 1 | -3/+7 | |
| | | | | llvm-svn: 204461 | |||||
* | [libsanitizer] Introduce flag descriptions. | Alexander Potapenko | 2014-03-20 | 1 | -4/+4 | |
| | | | | | | | | | Extend ParseFlag to accept the |description| parameter, add dummy values for all existing flags. As the flags are parsed their descriptions are stored in a global linked list. The tool can later call __sanitizer::PrintFlagDescriptions() to dump all the flag names and their descriptions. Add the 'help' flag and make ASan, TSan and MSan print the flags if 'help' is set to 1. llvm-svn: 204339 | |||||
* | [CMake] Build sanitizer unit tests with -std=c++11 | Alexey Samsonov | 2014-03-19 | 1 | -1/+1 | |
| | | | | llvm-svn: 204234 | |||||
* | [sanitizer] when recycling deadlock graph nodes, properly recycle edges | Kostya Serebryany | 2014-03-19 | 1 | -0/+41 | |
| | | | | llvm-svn: 204233 | |||||
* | [sanitizer] deadlock detector: a) initial support for suppressions, b) be ↵ | Kostya Serebryany | 2014-03-19 | 1 | -1/+3 | |
| | | | | | | more robust in case we failed to extract a stack trace for one of the locks llvm-svn: 204225 | |||||
* | [sanitizer] allow to store the lock context (stack trace id) with all ↵ | Kostya Serebryany | 2014-03-17 | 1 | -0/+38 | |
| | | | | | | currently held locks in a thread. This will allow the deadlock detector to provide better warnings (more changes to go) llvm-svn: 204039 | |||||
* | [sanitizer] partially implement racy fast path in bitset-based deadlock detector | Kostya Serebryany | 2014-03-14 | 1 | -0/+4 | |
| | | | | llvm-svn: 203904 | |||||
* | [sanitizer] in bitset-based deadlock detector collect edge's stack trace ↵ | Kostya Serebryany | 2014-03-14 | 1 | -0/+30 | |
| | | | | | | when an edge is added to the graph (in following CLs these stack traces will be added to the report) llvm-svn: 203902 | |||||
* | [sanitizer] in bitvector-based deadlock detector split onLock into ↵ | Kostya Serebryany | 2014-03-13 | 1 | -5/+5 | |
| | | | | | | onLockBefore and onLockAfter hooks llvm-svn: 203796 | |||||
* | [sanitizer] support recursive rwlocks in bitset-based deadlock detector | Kostya Serebryany | 2014-03-13 | 1 | -0/+30 | |
| | | | | llvm-svn: 203779 | |||||
* | [CMake] Make append_if semantics similar to those used in LLVM | Alexey Samsonov | 2014-03-13 | 1 | -2/+2 | |
| | | | | llvm-svn: 203773 | |||||
* | [ASan] Better way to disable tests for functions unavailable on certain ↵ | Alexey Samsonov | 2014-03-07 | 1 | -0/+23 | |
| | | | | | | platforms llvm-svn: 203224 | |||||
* | Fix StackTrace::LocatePcInTrace, add more unit tests for generic StackTrace | Alexey Samsonov | 2014-03-04 | 1 | -0/+22 | |
| | | | | llvm-svn: 202849 | |||||
* | [CMake] Test for libdl and libpthread presence | Alexey Samsonov | 2014-03-04 | 1 | -2/+4 | |
| | | | | llvm-svn: 202847 | |||||
* | [sanitizer] speedup deadlock detector for the case when we acquire the first ↵ | Kostya Serebryany | 2014-02-28 | 1 | -0/+38 | |
| | | | | | | lock in a thread llvm-svn: 202492 | |||||
* | [sanitizer] do not acquire a global mutex in deadlock detector when dealing ↵ | Kostya Serebryany | 2014-02-27 | 1 | -2/+1 | |
| | | | | | | with Unlock (it is essentially a thread-local operation) llvm-svn: 202401 | |||||
* | Support 'q' length modifier in scanf/printf interceptors | Alexey Samsonov | 2014-02-26 | 1 | -0/+1 | |
| | | | | llvm-svn: 202268 | |||||
* | Remove 'tctx->name' from a logical statement since it is a pointer and always | Richard Trieu | 2014-02-26 | 1 | -1/+1 | |
| | | | | | | is converted to a true value. Detected by Clang's improved -Wbool-conversion llvm-svn: 202223 | |||||
* | [sanitizer] add support for try_lock in deadlock detector | Kostya Serebryany | 2014-02-25 | 1 | -5/+32 | |
| | | | | llvm-svn: 202120 | |||||
* | [sanitizer] fix epoch handling in deadlock detector (before the fix, we ↵ | Kostya Serebryany | 2014-02-25 | 1 | -0/+30 | |
| | | | | | | could have had edges from locks in the previous epoch to locks in the current epoch) llvm-svn: 202118 | |||||
* | Move config for sanitizer_common tests under test/ for consistency | Alexey Samsonov | 2014-02-20 | 2 | -26/+0 | |
| | | | | llvm-svn: 201779 |