[TSan] run some renaming as a preparation for factoring out Printf implementation.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158058 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Make printf arguments match format strings better.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158059 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] more format fixes

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158060 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer]: Introduce a common internal printf function. For now, also use tool-specific wrappers TsanPrintf (its output is controlled by TSan flags) and AsanPrintf (which copies its results to the ASan-private buffer). Supported formats: %[z]{d,u,x}, %s, %p. Re-write all format strings in TSan according to this format (this should have no effect on 64-bit platforms).

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158065 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] fix Win build - ignore __attribute__((format)).

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158067 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] match type of arguments to format string on Mac.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158068 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Remove __attribute__((format))

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158070 91177308-0d34-0410-b5e6-96231b3b80d8
[tsan,asan] comment out O_CLOEXEC as it causes build failures on old linux kernels

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158071 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] start compacting the allocator header, the goal is to make it 16 bytes w/o losing any information

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158072 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] make tid u32 instead of int

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158074 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Use common CHECK machinery. Currently each tool has to define its own CheckFailed function.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158075 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] more compaction for allocator

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158076 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Make UNIMPLEMENTED macro common.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158077 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Switch to common mmap/munmap routines in ASan run-time.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158078 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] more allocator compaction

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158082 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] more compaction: don't use the next field while the chunk is in allocated state

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158083 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Move ReadFileToBuffer to sanitizer_common.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158138 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] __asan::AsanProcMaps -> __sanitizer::ProcessMaps.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158139 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] factor out GetThreadStackTopAndBottom from ASan runtime to common.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158140 91177308-0d34-0410-b5e6-96231b3b80d8
[Sanitizer] Fix mac build.

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