| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Turns out you need to save before committing.
llvm-svn: 252928
|
| |
|
|
|
|
| |
Also added a TODO comment to make the build system throw an error if the CMakeLists gets out of sync again.
llvm-svn: 252927
|
| |
|
|
|
|
|
|
|
|
|
| |
Go build does not link in whatever library provides these symbols:
# runtime/race
race_windows_amd64.syso:gotsan.cc:(.text+0x578f): undefined reference to `__sanitizer::DumpProcessMap()'
race_windows_amd64.syso:gotsan.cc:(.text+0xee33): undefined reference to `EnumProcessModules'
race_windows_amd64.syso:gotsan.cc:(.text+0xeeb9): undefined reference to `GetModuleInformation'
llvm-svn: 252922
|
| |
|
|
|
|
| |
CompareModulesBase is an unused function.
llvm-svn: 252907
|
| |
|
|
|
|
|
|
| |
`DlAddrSymbolizer` is used on OS X when we're running inside a sandbox that prevents us from spawning an external symbolizer. This patch adds support for symbolication of globals (implements `SymbolizeData`) for `DlAddrSymbolizer`.
Differential Revision: http://reviews.llvm.org/D14613
llvm-svn: 252899
|
| |
|
|
|
|
|
|
| |
The default symbolizer, `llvm-symbolizer` provides sizes for global symbols. On OS X, we want to also allow using `atos` (because it's available everywhere and users don't need to copy/install it) and `dladdr` (it's the only available option when running in a sandbox). However, these symbolizers do not supply the symbol sizes, only names and starting addresses. This patch changes the reporting functions to hide the size of the symbol when this value is unavailable, and modifies tests to make this part of the report "optional".
Differential Revision: http://reviews.llvm.org/D14608
llvm-svn: 252896
|
| |
|
|
|
|
|
| |
It does not work as expected.
Go runtime handles SIGABRT and crashes with a loud message.
llvm-svn: 252892
|
| |
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D14610
llvm-svn: 252887
|
| |
|
|
|
|
| |
librt is not linked in in Go build.
llvm-svn: 252877
|
| |
|
|
|
|
|
|
| |
This seems to be dead code – `system_malloc_zone` is initialized as null and we never assign to it. This code is apparently currently never executed (in ASan), but is causes trouble for the TSan OS X port. Let's replace the checks with `COMMON_MALLOC_ENTER` (`ENSURE_ASAN_INITED()`).
Differential Revision: http://reviews.llvm.org/D14334
llvm-svn: 252876
|
| |
|
|
| |
llvm-svn: 252875
|
| |
|
|
|
|
| |
cur_thread does not exist in Go.
llvm-svn: 252874
|
| |
|
|
|
|
|
|
| |
The TSan unit test build currently fails if we're also building the iOS parts of compiler-rt, because `TSAN_SUPPORTED_ARCH` contains ARM64. For unit tests, we need to filter this only to host architecture(s).
Differential Revision: http://reviews.llvm.org/D14604
llvm-svn: 252873
|
| |
|
|
| |
llvm-svn: 252869
|
| |
|
|
| |
llvm-svn: 252815
|
| |
|
|
|
|
|
|
| |
of the compiler command line
Setting CMAKE_*_FLAGS isn't sufficient here because CMAKE_*_FLAGS_${CMAKE_BUILD_TYPE} can override the flags, and there is no way to safely clear that because it is a cached variable (<sarcasm> YAY! </sarcasm>).
llvm-svn: 252807
|
| |
|
|
| |
llvm-svn: 252805
|
| |
|
|
| |
llvm-svn: 252784
|
| |
|
|
| |
llvm-svn: 252746
|
| |
|
|
|
|
|
|
| |
This reverts commits r252683 and r252689. This tool should not live here. See
http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20151109/311862.html
for discussion.
llvm-svn: 252744
|
| |
|
|
| |
llvm-svn: 252742
|
| |
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D14575
llvm-svn: 252741
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Summary: This is enough to get the asan static_tls.cc test case working.
Reviewers: eugenis, samsonov
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D14574
llvm-svn: 252738
|
| |
|
|
| |
llvm-svn: 252735
|
| |
|
|
|
|
|
|
| |
This patch enables building and running TSan unit tests on OS X.
Differential Revision: http://reviews.llvm.org/D14546
llvm-svn: 252731
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
On PowerPC64 Linux PTRACE_GETREGS is a #define and PT_GETREGS is not.
On other systems it's the other way round. Extend the #ifs to check for
both PTRACE_* and PT_*.
This fixes test/sanitizer_common/TestCases/Linux/ptrace.cc when msan is
enabled for PowerPC64.
Reviewers: zatrazz, kcc, eugenis, samsonov
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D14564
llvm-svn: 252730
|
| |
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D14241
llvm-svn: 252729
|
| |
|
|
| |
llvm-svn: 252724
|
| |
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D12318
llvm-svn: 252723
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Atomic RMW is not necessary in InitializeGuardArray.
It is supposed to run when no user code runs.
And if user code runs concurrently, then the atomic
RMW won't help anyway. So replace it with non-atomic RMW.
InitializeGuardArray takes more than 50% of time during re2 fuzzing:
real 0m47.215s
51.56% a.out a.out [.] __sanitizer_reset_coverage
6.68% a.out a.out [.] __sanitizer_cov
3.41% a.out a.out [.] __sanitizer::internal_bzero_aligned16(void*, unsigned long)
1.79% a.out a.out [.] __asan::Allocator::Allocate(unsigned long, unsigned long,
With this change:
real 0m31.661s
26.21% a.out a.out [.] sanitizer_reset_coverage
10.12% a.out a.out [.] sanitizer_cov
5.38% a.out a.out [.] __sanitizer::internal_bzero_aligned16(void*, unsigned long)
2.53% a.out a.out [.] __asan::Allocator::Allocate(unsigned long, unsigned long,
That's 33% speedup.
Reviewed in http://reviews.llvm.org/D14537
llvm-svn: 252715
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary: Depends on D9637
Test Plan:
Reviewers: kcc, glider, samsonov
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D9638
llvm-svn: 252696
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
On Darwin, interposed functions are prefixed with "wrap_". On Linux,
they are prefixed with "__interceptor_".
Reviewers: dvyukov, samsonov, glider, kcc, kubabrecka
Subscribers: zaks.anna, llvm-commits
Differential Revision: http://reviews.llvm.org/D14512
llvm-svn: 252695
|
| |
|
|
|
|
|
|
|
| |
It can't be built due to cxxabi missing. Will
fix later.
Differential Revision: http://reviews.llvm.org/D14559
llvm-svn: 252689
|
| |
|
|
|
|
|
|
|
|
| |
Summary:
First batch of sancov.py rewrite in C++.
Supports "-print" and "-covered_functions" commands.
Differential Revision: http://reviews.llvm.org/D14356
llvm-svn: 252683
|
| |
|
|
|
|
|
|
| |
prevents passing empty -isysroot arguments
This is a minor cleanup to the macho_embedded builtins.
llvm-svn: 252619
|
| |
|
|
|
|
|
| |
* Setting CMAKE_*_FLAGS_${BUILD_TYPE} isn't really needed since we're setting the same value everywhere
* functions sanitize variables differently from macros, darwin_add_embedded_builtin_libraries should be a macro otherwise it won't alter the variables.
llvm-svn: 252618
|
| |
|
|
| |
llvm-svn: 252575
|
| |
|
|
|
|
|
|
| |
toolchain that may not support all x86 and arm architectures.
This is at least a little better than my first attempt. We still really need a way to do compile checks without linking.
llvm-svn: 252572
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Runtime code implicitly depends on the defintions and const
values defined in LLVM proper, but currently such dependency
is made implicitly by duplicating code across two dirs. As
part of the PGO cleanup effort, there will be changes to share
common sources. This is a preparation patch to enable it (NFC).
Differential Revision: http://reviews.llvm.org/D14487
llvm-svn: 252570
|
| |
|
|
|
|
|
|
| |
the architectures before generating build targets"
This commit reverts r252525. I was not really thinking about this fix properly. This doesn't work because it relys on try_compile checks which do a full compile & link. I'm going to put in a temporary solution as an interm step until we have a way to perform compiler checks without linking.
llvm-svn: 252569
|
| |
|
|
|
|
| |
This change makes CMake match autoconf.
llvm-svn: 252547
|
| |
|
|
| |
llvm-svn: 252543
|
| |
|
|
|
|
| |
Fixing a typo.
llvm-svn: 252534
|
| |
|
|
|
|
|
|
| |
put into the fat archive.
Not making sure there are thin libraries results in some difficult to diagnose build failures. This check should make those build failures go away.
llvm-svn: 252527
|
| |
|
|
|
|
|
|
| |
architectures before generating build targets
If we don't check the compiler's capabilities we end up generating build targets that the compiler might not be able to build.
llvm-svn: 252525
|
| |
|
|
|
|
|
|
| |
This patch makes ASAN for aarch64 use the same shadow offset for all
currently supported VMAs (39 and 42 bits). The shadow offset is the
same for 39-bit (36).
llvm-svn: 252497
|
| |
|
|
| |
llvm-svn: 252468
|
| |
|
|
|
|
|
|
| |
The TSan-instrumented version of libcxx doesn't even build on OS X at this point. Let's skip it from the OS X build for now, since most of TSan functionality doesn't depend on it. This will enable `check-tsan` to be run.
Differential Revision: http://reviews.llvm.org/D14486
llvm-svn: 252455
|
| |
|
|
|
|
|
|
| |
To make them the same as the common def in InstrProfData.inc.
This is a preparation to make the runtime code to use the
template as well. NFC
llvm-svn: 252421
|
| |
|
|
|
|
|
|
| |
Several tests currently deadlock when the lit test suite is run on OS X. Let's mark them as unsupported.
Differential Revision: http://reviews.llvm.org/D14443
llvm-svn: 252402
|