[asan] add interface function __sanitizer_get_total_unique_coverage; useful for coverage-guided in-process fuzzers

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@222060 91177308-0d34-0410-b5e6-96231b3b80d8
As a follow up to r222001, Peter Bergner pointed out that there is
nothing 64-bit-specific about the PowerPC stack overflow detection.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@222084 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Fix leak tests on 64-bit targets other than x86-64

Summary:
This test explicitly sets ASAN_OPTIONS=detect_leaks=1 which is only
supported on x86-64. The test is currently restricted to run only on
64-bit targets, but needs to be restricted further so it only runs on
x86-64.

Reviewers: kcc, eugenis, earthdok, samsonov

Reviewed By: samsonov

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D6189

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@222091 91177308-0d34-0410-b5e6-96231b3b80d8
Revert r222091 because it caused a buildbot failure.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@222095 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: add description of AcquireGlobal function



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@222228 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Remove MSanDR and supporting code.

MSanDR is a dynamic instrumentation tool that can instrument the code
(prebuilt libraries and such) that could not be instrumented at compile time.

This code is unused (to the best of our knowledge) and unmaintained, and
starting to bit-rot.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@222232 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Fix CMake CMP0046 warning in standalone build.

Make FileCheck an "imported dependency" in standalone build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@222234 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Re-enable zero_page_pc test on Android.

It's not failing anymore. Not sure what has changed (the bot was down for a
long time), but lets keep it this way.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@222236 91177308-0d34-0410-b5e6-96231b3b80d8
profile: Robustify instrprof tests

Change these tests not to rely on the exact metadata numbers the
profile data gets.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@222279 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] initial support for experimental basic-block tracing; also add tests for various levels of -fsanitize-coverage 

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@222291 91177308-0d34-0410-b5e6-96231b3b80d8
Make the ASan OS X DYLD_INSERT_LIBRARIES detection path-independent

Reviewed at http://reviews.llvm.org/D6238

ASan on Darwin during launch reads DYLD_INSERT_LIBRARIES env. variable and if it's not set or if the ASan dylib is not present in there, it relaunches the process. The check whether the dylib is present in the variable is now trying to find a full path in there. This fails in the scenarios where we want to copy the dylib to the executable's directory or somewhere else and set the DYLD_INSERT_LIBRARIES manually, see http://reviews.llvm.org/D6018.

Let's change the search in DYLD_INSERT_LIBRARIES to only look for the filename of the dylib and not the full path.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@222297 91177308-0d34-0410-b5e6-96231b3b80d8