summaryrefslogtreecommitdiffstats
path: root/compiler-rt
Commit message (Collapse)AuthorAgeFilesLines
...
* [sancov] Remove debug leftovers and update usage text.Evgeniy Stepanov2014-06-021-4/+2
| | | | llvm-svn: 210009
* compiler-rt: prefer .rodata for non MachO targetsSaleem Abdulrasool2014-06-013-6/+22
| | | | | | | | Place constants into .rdata if targeting ELF or COFF/PE. This should be functionally identical, however, the data would be placed into a different section. This is purely a cleanup change. llvm-svn: 209986
* compiler-rt: whitespace and uniformity for armSaleem Abdulrasool2014-06-0113-27/+48
| | | | | | | | | Make the whitespace a bit more uniform in the various assembly routines. This also makes the assembly files a bit more uniform on the ARM side by explicitly stating that it is using the unified syntax and that the contents of the code is in the text section (or segment). No functional change. llvm-svn: 209985
* [TSan] Add a test case for r209939Alexey Samsonov2014-05-312-0/+47
| | | | llvm-svn: 209940
* Disable stack-overflow test on ARMGreg Fitzgerald2014-05-301-0/+1
| | | | llvm-svn: 209925
* tsan: add a test from data-race-test suite:Dmitry Vyukov2014-05-301-0/+29
| | | | | | https://code.google.com/p/data-race-test/source/browse/trunk/unittest/racecheck_unittest.cc llvm-svn: 209900
* tsan: make positive tests more robustDmitry Vyukov2014-05-3089-127/+206
| | | | | | | | | | Add a script that is used to deflake inherently flaky tsan tests. It is invoked from lit tests as: %deflake %run %t The script runs the target program up to 10 times, until it produces a tsan warning. llvm-svn: 209898
* tsan: optimize memory access functionsDmitry Vyukov2014-05-3010-83/+202
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-303-30/+14
| | | | | | | | CMake variable Reviewed at http://reviews.llvm.org/D3952 llvm-svn: 209889
* [ASan Win] Fix a couple of warnings in tests and enable -WXTimur Iskhodzhanov2014-05-304-0/+4
| | | | llvm-svn: 209887
* Implement __divtf3 for IEEE quad precision.Joerg Sonnenberger2014-05-302-0/+297
| | | | | | | Patch by: GuanHong Liu Differential Revision: http://reviews.llvm.org/D2800 llvm-svn: 209886
* [sanitizer] Fix build on ARM.Evgeniy Stepanov2014-05-301-1/+2
| | | | llvm-svn: 209884
* [ASan Win] DLL thunk: make each INTERFACE_FUNCTION unique to prevent ICF ↵Timur Iskhodzhanov2014-05-303-1/+12
| | | | | | linker optimizations llvm-svn: 209881
* [asan] Enable ASan on PowerPC.Evgeniy Stepanov2014-05-304-4/+20
| | | | | | Patch by Peter Bergner. llvm-svn: 209879
* Mark currently failing ARM tests with XFAIL.Greg Fitzgerald2014-05-2920-0/+20
| | | | | | Differential Revision: http://reviews.llvm.org/D3857 llvm-svn: 209862
* Mark unstable tests as Unsupported on ARMGreg Fitzgerald2014-05-294-0/+8
| | | | | | | | This is half the patch from: http://reviews.llvm.org/D3857 It lets us get deterministic results from the rest of the test suite. llvm-svn: 209861
* light up sanitizers for ARM, take 2Greg Fitzgerald2014-05-294-13/+35
| | | | | | Differential Revision: http://reviews.llvm.org/D3794 llvm-svn: 209856
* Revert "light up sanitizers for ARM"Greg Fitzgerald2014-05-294-31/+13
| | | | | | | | This commit broke the Windows build, where CMAKE_C_COMPILER can compile and link with -march=armv7-a but the just-built-clang cannot. llvm-svn: 209851
* light up sanitizers for ARMGreg Fitzgerald2014-05-294-13/+31
| | | | | | | | | | | | You can expect the sanitizers to be built under any of the following conditions: 1) CMAKE_C_COMPILER is GCC built to cross-compile to ARM 2) CMAKE_C_COMPILER is Clang built to cross-compile to ARM (ARM is default target) 3) CMAKE_C_COMPILER is Clang and CMAKE_C_FLAGS contains -target and --sysroot Differential Revision: http://reviews.llvm.org/D3794 llvm-svn: 209835
* [sanitizer] Update flags test.Evgeniy Stepanov2014-05-291-2/+2
| | | | llvm-svn: 209818
* [sanitizer] Add coverage_dir flag.Evgeniy Stepanov2014-05-295-23/+35
| | | | llvm-svn: 209815
* [sanitizer] Require that options end with '='.Evgeniy Stepanov2014-05-291-2/+5
| | | | llvm-svn: 209814
* tsan: write memory profile in one line (which is much more readable)Dmitry Vyukov2014-05-295-19/+9
| | | | | | | | | | e.g.: RSS 420 MB: shadow:35 meta:231 file:2 mmap:129 trace:19 heap:0 other:0 nthr=1/31 RSS 365 MB: shadow:3 meta:231 file:2 mmap:106 trace:19 heap:0 other:0 nthr=1/31 RSS 429 MB: shadow:23 meta:234 file:2 mmap:143 trace:19 heap:6 other:0 nthr=1/31 RSS 509 MB: shadow:78 meta:241 file:2 mmap:147 trace:19 heap:19 other:0 nthr=1/31 llvm-svn: 209813
* tsan: allow to write memory profile to stdout/stderrDmitry Vyukov2014-05-291-9/+14
| | | | llvm-svn: 209811
* tsan: refactor storage of meta information for heap blocks and sync objectsDmitry Vyukov2014-05-2939-788/+965
| | | | | | | | | | | | | | | The new storage (MetaMap) is based on direct shadow (instead of a hashmap + per-block lists). This solves a number of problems: - eliminates quadratic behaviour in SyncTab::GetAndLock (https://code.google.com/p/thread-sanitizer/issues/detail?id=26) - eliminates contention in SyncTab - eliminates contention in internal allocator during allocation of sync objects - removes a bunch of ad-hoc code in java interface - reduces java shadow from 2x to 1/2x - allows to memorize heap block meta info for Java and Go - allows to cleanup sync object meta info for Go - which in turn enabled deadlock detector for Go llvm-svn: 209810
* [ASan Win tests] Add a couple more memcpy/memset testsTimur Iskhodzhanov2014-05-293-9/+63
| | | | llvm-svn: 209806
* Support getting executable's name for sanitizers needs on FreeBSDViktor Kutuzov2014-05-291-1/+11
| | | | llvm-svn: 209805
* Fix building 32-bit common sanitizer tests on FreeBSD 9.2Viktor Kutuzov2014-05-291-2/+3
| | | | llvm-svn: 209804
* Add __extenddftf2 and __extendsftf2 for IEEE quad precision.Joerg Sonnenberger2014-05-294-0/+211
| | | | | | | Patch by: GuanHong Liu Differential Revision: http://reviews.llvm.org/D2802 llvm-svn: 209783
* Implement __trunctfdf2 and __trunctfsf2 for IEEE quad precision.Joerg Sonnenberger2014-05-294-0/+195
| | | | | | | Patch by: GuanHong Liu Differential Revision: http://reviews.llvm.org/D2803 llvm-svn: 209782
* Refactor extendsfdf2.Joerg Sonnenberger2014-05-293-124/+187
| | | | | | | Patch by: GuanHong Liu Differential Revision: http://reviews.llvm.org/D3887 llvm-svn: 209781
* Refactor truncdfsf2.Joerg Sonnenberger2014-05-293-155/+204
| | | | | | | Patch by: GuanHong Liu Differential Revision: http://reviews.llvm.org/D3888 llvm-svn: 209779
* Moved the builtins documentation to lib/builtins/Greg Fitzgerald2014-05-283-336/+346
| | | | | | | | And fixed typos in the ASan readme. Differential Revision: http://reviews.llvm.org/D3927 llvm-svn: 209778
* [Sanitizer] Always prefer cached contents of /proc/self/exe if it's availableAlexey Samsonov2014-05-281-13/+12
| | | | llvm-svn: 209773
* tsan: refactor suppressions machineryDmitry Vyukov2014-05-288-43/+41
| | | | | | | | | | The refactoring makes suppressions more flexible and allow to suppress based on arbitrary number of stacks. In particular it fixes: https://code.google.com/p/thread-sanitizer/issues/detail?id=64 "Make it possible to suppress deadlock reports by any stack (not just first)" llvm-svn: 209757
* tsan: do not use 64-bit atomics in allocator codeDmitry Vyukov2014-05-283-34/+32
| | | | | | 64-bit atomics make porting of asan to 32-bits platforms problematic. llvm-svn: 209744
* Refactor muldf3 and mulsf3.Joerg Sonnenberger2014-05-283-196/+122
| | | | | | | Patch from: GuanHong Liu Differential Revision: http://reviews.llvm.org/D3886 llvm-svn: 209741
* Refactor addsf3.c and adddf3.c.Joerg Sonnenberger2014-05-283-266/+150
| | | | | | Differential Revision: http://reviews.llvm.org/D3885 llvm-svn: 209740
* [asan] Mass-xfail 17 tests on Android.Evgeniy Stepanov2014-05-2817-0/+51
| | | | | | | | | This makes check-asan pass on Android, which should help prevent future regressions. https://code.google.com/p/address-sanitizer/issues/detail?id=316 llvm-svn: 209736
* [sanitizer] Replace -lpthread with -pthread in tests.Evgeniy Stepanov2014-05-2814-36/+36
| | | | | | -lpthread does not work on Android. llvm-svn: 209735
* [asan] XFAIL:android several tests.Evgeniy Stepanov2014-05-285-0/+5
| | | | llvm-svn: 209734
* [ASan tests] Exclude some tests from Windows runsTimur Iskhodzhanov2014-05-2817-2/+55
| | | | | | Some features are not supported yet and some are not planned to be fixed soon llvm-svn: 209733
* [asan] Fix android test setup.Evgeniy Stepanov2014-05-281-0/+2
| | | | llvm-svn: 209724
* [ASan tests] Move one more test to POSIX-only directoryTimur Iskhodzhanov2014-05-281-0/+0
| | | | llvm-svn: 209722
* [ASan/Win] Use clang rather than clang-cl by default for lit tests. Make ↵Timur Iskhodzhanov2014-05-2863-111/+124
| | | | | | | | Windows-only tests explicitly use clang-cl. Reviewed at http://reviews.llvm.org/D3893 llvm-svn: 209719
* [asan] Add a dll thunk for __sanitizer_cov_module_init.Evgeniy Stepanov2014-05-281-0/+2
| | | | llvm-svn: 209718
* [asan] Add a few stubs to fix windows build.Evgeniy Stepanov2014-05-281-0/+12
| | | | llvm-svn: 209717
* [asan] use relative line numbers in testsGreg Fitzgerald2014-05-274-14/+14
| | | | llvm-svn: 209699
* [tsan] Fix tsango build.Evgeniy Stepanov2014-05-271-0/+4
| | | | llvm-svn: 209658
* [asan] Disable dlopen interceptor on Android.Evgeniy Stepanov2014-05-271-1/+1
| | | | | | | It can not work, as libdl is always first in the lookup order, even ahead of LD_PRELOAD-ed libraries. llvm-svn: 209657
OpenPOWER on IntegriCloud