summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* tsan: fix crash when a program registers zillions of atexit callbacksDmitry Vyukov2014-09-171-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 XKuba Brecka2014-09-101-0/+2
| | | | | | Reviewed at http://reviews.llvm.org/D4047 llvm-svn: 217523
* Fixup test case after r217079Alexey Samsonov2014-09-031-2/+2
| | | | llvm-svn: 217111
* tsan: address comments in r214912Dmitry Vyukov2014-09-021-2/+2
| | | | | | See http://reviews.llvm.org/D4794 llvm-svn: 216900
* Fixup Android tests build rulesAlexey Samsonov2014-08-091-1/+1
| | | | llvm-svn: 215264
* [UBSan] Allow to suppress reports from vptr checker for specified types.Alexey Samsonov2014-08-051-2/+4
| | | | | | Based on http://reviews.llvm.org/D4702 by Byoungyoung Lee! llvm-svn: 214833
* Exclude Android from the tests for valloc/pvalloc.Dan Albert2014-06-141-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 Stepanov2014-06-101-0/+25
| | | | | | Standard KVM ioctls don't pass currect ioctl_decode(). llvm-svn: 210533
* [asan] Use -pthread instead of -lpthread in tests.Evgeniy Stepanov2014-06-051-1/+1
| | | | llvm-svn: 210255
* tsan: optimize memory access functionsDmitry Vyukov2014-05-301-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 Iskhodzhanov2014-05-301-15/+1
| | | | | | | | CMake variable Reviewed at http://reviews.llvm.org/D3952 llvm-svn: 209889
* [sanitizer] Update flags test.Evgeniy Stepanov2014-05-291-2/+2
| | | | llvm-svn: 209818
* Fix building 32-bit common sanitizer tests on FreeBSD 9.2Viktor Kutuzov2014-05-291-2/+3
| | | | llvm-svn: 209804
* [ASan/Win] Use clang rather than clang-cl by default for lit tests. Make ↵Timur Iskhodzhanov2014-05-281-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 Iskhodzhanov2014-05-191-1/+4
| | | | | | Reviewed at http://reviews.llvm.org/D3796 llvm-svn: 209115
* [Sanitizer tests] Exclude three tests that fail on WindowsTimur Iskhodzhanov2014-05-132-0/+7
| | | | llvm-svn: 208698
* [Sanitizer tests] Land the sanitizer twin of the asan-only change r208682Timur Iskhodzhanov2014-05-131-2/+28
| | | | llvm-svn: 208697
* [Sanitizer tests] Add sanitizer_test_config.h to make the inclusion of ↵Timur Iskhodzhanov2014-05-134-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 Iskhodzhanov2014-05-131-2/+1
| | | | llvm-svn: 208695
* [Sanitizer tests] Fix most of the build problems on WindowsTimur Iskhodzhanov2014-05-137-19/+40
| | | | | | E.g. use the pthread helpers introduced in r208674 llvm-svn: 208692
* [Sanitizer tests] Make simple pthread tests compile and pass on WindowsTimur Iskhodzhanov2014-05-133-0/+77
| | | | | | Reviewed at http://reviews.llvm.org/D3725 llvm-svn: 208674
* [Sanitizer tests] Fix a comment that got out of sync with the #ifTimur Iskhodzhanov2014-05-121-2/+2
| | | | llvm-svn: 208602
* [ASan tests] Use the proper attribute on RunStrChrTest helper functions to ↵Timur Iskhodzhanov2014-05-121-3/+9
| | | | | | avoid "unused function" warnings llvm-svn: 208568
* [ASan] Update sanitizer_common and asan test_util headers to support ↵Timur Iskhodzhanov2014-05-081-11/+6
| | | | | | building on Windows llvm-svn: 208306
* [Sanitizer] Add rudimentary support for wide-character strings to ↵Alexey Samsonov2014-04-281-0/+7
| | | | | | scanf/printf interceptors llvm-svn: 207443
* Fix building Asan and common sanitizers tests on FreeBSD 9.2Viktor Kutuzov2014-04-281-0/+4
| | | | llvm-svn: 207408
* [sanitizer] speed up the bitvector-based deadlock detector by ~15% (iterate ↵Kostya Serebryany2014-03-311-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 variableAlexey Samsonov2014-03-241-1/+1
| | | | llvm-svn: 204602
* [CMake] Respect CMAKE_CXX_FLAGS in custom clang_compile commandsAlexey Samsonov2014-03-241-2/+3
| | | | llvm-svn: 204593
* [sanitizer] print threads in deadlock reportKostya Serebryany2014-03-211-3/+7
| | | | llvm-svn: 204461
* [libsanitizer] Introduce flag descriptions.Alexander Potapenko2014-03-201-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++11Alexey Samsonov2014-03-191-1/+1
| | | | llvm-svn: 204234
* [sanitizer] when recycling deadlock graph nodes, properly recycle edgesKostya Serebryany2014-03-191-0/+41
| | | | llvm-svn: 204233
* [sanitizer] deadlock detector: a) initial support for suppressions, b) be ↵Kostya Serebryany2014-03-191-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 Serebryany2014-03-171-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 detectorKostya Serebryany2014-03-141-0/+4
| | | | llvm-svn: 203904
* [sanitizer] in bitset-based deadlock detector collect edge's stack trace ↵Kostya Serebryany2014-03-141-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 Serebryany2014-03-131-5/+5
| | | | | | onLockBefore and onLockAfter hooks llvm-svn: 203796
* [sanitizer] support recursive rwlocks in bitset-based deadlock detectorKostya Serebryany2014-03-131-0/+30
| | | | llvm-svn: 203779
* [CMake] Make append_if semantics similar to those used in LLVMAlexey Samsonov2014-03-131-2/+2
| | | | llvm-svn: 203773
* [ASan] Better way to disable tests for functions unavailable on certain ↵Alexey Samsonov2014-03-071-0/+23
| | | | | | platforms llvm-svn: 203224
* Fix StackTrace::LocatePcInTrace, add more unit tests for generic StackTraceAlexey Samsonov2014-03-041-0/+22
| | | | llvm-svn: 202849
* [CMake] Test for libdl and libpthread presenceAlexey Samsonov2014-03-041-2/+4
| | | | llvm-svn: 202847
* [sanitizer] speedup deadlock detector for the case when we acquire the first ↵Kostya Serebryany2014-02-281-0/+38
| | | | | | lock in a thread llvm-svn: 202492
* [sanitizer] do not acquire a global mutex in deadlock detector when dealing ↵Kostya Serebryany2014-02-271-2/+1
| | | | | | with Unlock (it is essentially a thread-local operation) llvm-svn: 202401
* Support 'q' length modifier in scanf/printf interceptorsAlexey Samsonov2014-02-261-0/+1
| | | | llvm-svn: 202268
* Remove 'tctx->name' from a logical statement since it is a pointer and alwaysRichard Trieu2014-02-261-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 detectorKostya Serebryany2014-02-251-5/+32
| | | | llvm-svn: 202120
* [sanitizer] fix epoch handling in deadlock detector (before the fix, we ↵Kostya Serebryany2014-02-251-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 consistencyAlexey Samsonov2014-02-202-26/+0
| | | | llvm-svn: 201779
OpenPOWER on IntegriCloud