summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2014-04-01[TSan] Make this test more portableAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@205300 91177308-0d34-0410-b5e6-96231b3b80d8
2014-04-01[sanitizer] one more stress test for the deadlock detector; this one ↵Kostya Serebryany
stresses the slow path with a global lock git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@205299 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-31InstrProf: lit.cfg magic for running tests from sourceDuncan P. N. Exon Smith
Implement magic in compiler-rt to enable llvm-lit to be invoked on the source tree in lib/profile. This relies on a paired commit in the llvm tree that exposes a new built-in parameter. <rdar://problem/16458307> git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@205263 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-31InstrProf: Add simple compiler-rt testDuncan P. N. Exon Smith
Add the test infrastructure for testing lib/profile and a single test. This initial commit only enables the tests on Darwin, but they'll be enabled on Linux soon after. <rdar://problem/16458307> git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@205256 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-31[msan] Remove an extra top frame from track-origins=2 reports.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@205192 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-31[TSan] Follow-up for r205175: typo fix in the test.Alexander Potapenko
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@205176 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-28[sanitizer] Intercept rand_r.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@205001 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-28[sanitizer] Intercept mktime.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204994 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-28[sanitizer] Intercept ftime.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204991 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-27[sanitizer] Intercept __bzero on Mac.Evgeniy Stepanov
This should make memset_test pass on Mac. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204929 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-27[msan] Implement __msan_set_death_callback.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204926 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-27[msan] Intercept several malloc-related functions.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204923 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-27[asan] add a test case for r204897.Kostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204903 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-27[asan] Do not sanitize kernel area on 32-bit targets, patch by Yuri GribovKostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204897 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-26Add function to get the number of DFSan labels allocated.Peter Collingbourne
Expose the number of DFSan labels allocated by adding function dfsan_get_label_count(). Patch by Sam Kerner! Differential Revision: http://llvm-reviews.chandlerc.com/D3109 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204854 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-26tsan: deflake testDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204824 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-26tsan: add pthread_barrier_t testDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204810 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-26[sanitizer] Intercept __aeabi_mem(set|cpy|move).Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204800 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-24tsan: reduce default number of threads in benchmarksDmitry Vyukov
buildbots seem to OOM with that many threads git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204610 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-24tsan: add benchmarks for synchronization handlingDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204608 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-21[sanitizer] print threads in deadlock reportKostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204461 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-21[sanitizer] more human-readable deadlock reportsKostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204454 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-21[MSan] Add __msan_unpoison_string() to the public interface.Sergey Matveev
Using __msan_unpoison() on null-terminated strings is awkward because strlen() can't be called on a poisoned string. This case warrants a special interface function. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204448 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-20[msan] Use new -fsanitize-memory-track-origins= flag in MSan tests.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204347 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-20tsan: deflake testDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204340 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-20Mark this test as 64-bit specificAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204319 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-19tsan: add test for second_deadlock_stack flagDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204240 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-19[msan] Fix line numbers in test.Evgeniy Stepanov
This corresponds to a fix in llvm::SplitBlockAndInsertIfThen. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204229 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-19[sanitizer] deadlock detector: a) initial support for suppressions, b) be ↵Kostya Serebryany
more robust in case we failed to extract a stack trace for one of the locks git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204225 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-18Use CRT_HAS_128BIT.Joerg Sonnenberger
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204182 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-18[msan] Origin tracking with history, compiler-rt part.Evgeniy Stepanov
Compiler-rt part of MSan implementation of advanced origin tracking, when we record not only creation point, but all locations where an uninitialized value was stored to memory, too. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204152 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-18tsan: fix flaky testDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204119 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-18[sanitizer] a bit more informative deadlock detector report (still lots to ↵Kostya Serebryany
improve) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204115 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-17[sanitizer] reverse the order of the stack traces printed for every pair of ↵Kostya Serebryany
locks in the deadlock report (first print the 'from' node, then print the 'to' node of the deadlock graph) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204043 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-17[sanitizer] make the deadlock detector print 2*N stack traces on ↵Kostya Serebryany
lock-order-inversion with N locks (i.e. print stack traces for both lock acquisitions in every edge in the graph). More improvements to follow git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204042 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-17[sanitizer] one more output test for the deadlock detectorKostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204036 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-17[sanitizer] fix build warnings; add an output test for the deadlock detecorKostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204035 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-14[ASan] Fix https://code.google.com/p/address-sanitizer/issues/detail?id=274Alexander Potapenko
by ignoring globals from __TEXT,__cstring,cstring_literals during instrumenation. Add a regression test. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203916 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-13tsan: update the test since the bug is fixedDmitry Vyukov
http://llvm.org/bugs/show_bug.cgi?id=19113 is fixed, so enable the better CHECK git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203784 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-13[sanitizer] support recursive rwlocks in bitset-based deadlock detectorKostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203779 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-12tsan: fix handling of pthread_cond_wait in presence of pthread_cancelDmitry Vyukov
if the thread is cancelled in pthread_cond_wait, it locks the mutex before processing pthread_cleanup stack but tsan was missing that, thus reporting false double-lock/wrong-unlock errors see the test for details git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203648 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-12tsan: add disabled test for http://llvm.org/bugs/show_bug.cgi?id=19113Dmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@203646 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-05Improve llvm-symbolizer discovery in asan_symbolize.pyAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202982 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-04[msan] Make up for missing interceptor in getxattr() test.Sergey Matveev
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202846 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-04[ASan] Speed up stack trace unwinding for stacks of size 2.Alexey Samsonov
Summary: We don't need to do any work in this case - just take the current PC and caller PC. Reviewers: eugenis, ygribov Reviewed By: eugenis CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D2936 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202845 91177308-0d34-0410-b5e6-96231b3b80d8
2014-03-04[msan] Add missing line to getxattr() test.Sergey Matveev
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202841 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-28tsan: prevent actual deadlock in deadlock detector testDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202502 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-28[sanitizer] speedup deadlock detector for the case when we acquire the first ↵Kostya Serebryany
lock in a thread git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202492 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-28[sanitizer] speedup deadlock detector for the case when we destroy a mutex ↵Kostya Serebryany
that has never been locked git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202487 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-28tsan: deflake testDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202484 91177308-0d34-0410-b5e6-96231b3b80d8