Generalize sanitizer allocator public interface.
authorAlexey Samsonov <vonosmas@gmail.com>
Mon, 7 Jul 2014 17:39:31 +0000 (17:39 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Mon, 7 Jul 2014 17:39:31 +0000 (17:39 +0000)
commit91bb8e0e3a6312f673b04454de2eeea0be682c0a
treeb1047d5cea1a03ee5b9c5526806f607bc91dbba5
parent761439962b996292e5c49a19f3b1ee6cd5584f70
Generalize sanitizer allocator public interface.

Introduce new public header <sanitizer/allocator_interface.h> and a set
of functions __sanitizer_get_ownership(), __sanitizer_malloc_hook() etc.
that will eventually replace their tool-specific equivalents
(__asan_get_ownership(), __msan_get_ownership() etc.). Tool-specific
functions are now deprecated and implemented as stubs redirecting
to __sanitizer_ versions (which are implemented differently in each tool).

Replace all uses of __xsan_ versions with __sanitizer_ versions in unit
and lit tests.

llvm-svn: 212469
29 files changed:
compiler-rt/include/CMakeLists.txt
compiler-rt/include/sanitizer/allocator_interface.h [new file with mode: 0644]
compiler-rt/include/sanitizer/asan_interface.h
compiler-rt/include/sanitizer/msan_interface.h
compiler-rt/lib/asan/asan_allocator2.cc
compiler-rt/lib/asan/asan_interface_internal.h
compiler-rt/lib/asan/asan_internal.h
compiler-rt/lib/asan/asan_report.cc
compiler-rt/lib/asan/asan_report.h
compiler-rt/lib/asan/asan_stats.cc
compiler-rt/lib/asan/tests/asan_interface_test.cc
compiler-rt/lib/asan/tests/asan_noinst_test.cc
compiler-rt/lib/msan/msan.h
compiler-rt/lib/msan/msan_allocator.cc
compiler-rt/lib/msan/msan_interceptors.cc
compiler-rt/lib/msan/msan_interface_internal.h
compiler-rt/lib/msan/tests/msan_test.cc
compiler-rt/lib/sanitizer_common/CMakeLists.txt
compiler-rt/lib/sanitizer_common/sanitizer_allocator_interface.h [new file with mode: 0644]
compiler-rt/lib/tsan/rtl/tsan_mman.cc
compiler-rt/lib/tsan/rtl/tsan_mman.h
compiler-rt/lib/tsan/tests/unit/tsan_mman_test.cc
compiler-rt/test/asan/TestCases/Linux/tsd_dtor_leak.cc
compiler-rt/test/asan/TestCases/current_allocated_bytes.cc
compiler-rt/test/asan/TestCases/free_hook_realloc.cc
compiler-rt/test/asan/TestCases/malloc_hook.cc
compiler-rt/test/asan/TestCases/max_redzone.cc
compiler-rt/test/msan/malloc_hook.cc
compiler-rt/test/tsan/malloc_hook.cc