llvm-project/compiler-rt/lib/sanitizer_common
Chandler Carruth 1aa4fef601 Relocate the external headers provided by ASan and the common sanitizer
library.

These headers are intended to be available to user code when built with
AddressSanitizer (or one of the other sanitizer's in the future) to
interface with the runtime library. As such, they form stable external
C interfaces, and the headers shouldn't be located within the
implementation.

I've pulled them out into what seem like fairly obvious locations and
names, but I'm wide open to further bikeshedding of these names and
locations.

I've updated the code and the build system to cope with the new
locations, both CMake and Makefile. Please let me know if this breaks
anyone's build.

The eventual goal is to install these headers along side the Clang
builtin headers when we build the ASan runtime and install it. My
current thinking is to locate them at:

  <prefix>/lib/clang/X.Y/include/sanitizer/common_interface_defs.h
  <prefix>/lib/clang/X.Y/include/sanitizer/asan_interface.h
  <prefix>/lib/clang/X.Y/include/sanitizer/...

But maybe others have different suggestions?

Fixing the style of the #include between these headers at least unblocks
experimentation with installing them as they now should work when
installed in these locations.

llvm-svn: 162822
2012-08-29 02:27:54 +00:00
..
llvm-symbolizer [Sanitizer] Add external symbolizer binary. Next steps - include it in CMake build (produce 32-bit and 64-bit version of it, make sure we can compile LLVM sources with our own flags) and add tests for it. 2012-08-23 12:39:35 +00:00
tests [Sanitizer] align allocation sizes in low level allocator 2012-08-27 14:51:36 +00:00
CMakeLists.txt Some flag cleanup for the sanitizer runtimes. 2012-08-29 00:13:11 +00:00
Makefile.mk [asan,tsan] Add a new directory compiler-rt/lib/sanitizer_common 2012-05-29 12:18:18 +00:00
sanitizer_allocator.cc [Sanitizer] align allocation sizes in low level allocator 2012-08-27 14:51:36 +00:00
sanitizer_allocator64.h tsan: improve memory allocator a bit 2012-08-24 15:53:14 +00:00
sanitizer_atomic.h [ASan] cmake cleanup: make tab/space padding in CMakeLists consistent, silence/fix some pedantic warnings 2012-07-02 06:48:10 +00:00
sanitizer_atomic_clang.h tsan/asan: first try on msvc atomics 2012-06-29 18:00:38 +00:00
sanitizer_atomic_msvc.h tsan/asan: third try on msvc atomics 2012-06-29 18:37:45 +00:00
sanitizer_common.cc [Sanitizer] implement straightforward nlogn sorting, as qsort() may call malloc, which leads to deadlock in ASan allocator 2012-07-16 11:27:17 +00:00
sanitizer_common.h [asan] get rid of AsanPrintf in favor of Printf from sanitizer_common 2012-08-28 11:34:40 +00:00
sanitizer_flags.cc [Sanitizer] align allocation sizes in low level allocator 2012-08-27 14:51:36 +00:00
sanitizer_flags.h [Sanitizer] fix CMake build 2012-07-10 09:17:06 +00:00
sanitizer_internal_defs.h Relocate the external headers provided by ASan and the common sanitizer 2012-08-29 02:27:54 +00:00
sanitizer_libc.cc [Sanitizer] implement internal_strcspn 2012-08-21 09:26:26 +00:00
sanitizer_libc.h Relocate the external headers provided by ASan and the common sanitizer 2012-08-29 02:27:54 +00:00
sanitizer_linux.cc [Sanitizer] Rename ProcessMaps to MemoryMappingLayout and fix Windows build by providing stub implementation 2012-08-27 13:48:48 +00:00
sanitizer_list.h [tsan] start using AllocatorCache in CombinedAllocator 2012-07-06 14:32:00 +00:00
sanitizer_mac.cc [Sanitizer] Rename ProcessMaps to MemoryMappingLayout and fix Windows build by providing stub implementation 2012-08-27 13:48:48 +00:00
sanitizer_mutex.h asan/tsan: improve SpinMutex 2012-07-02 07:09:21 +00:00
sanitizer_placement_new.h [Sanitizer] use fully qualified type for placement new replacement 2012-06-19 07:40:45 +00:00
sanitizer_posix.cc [Sanitizer] Rename ProcessMaps to MemoryMappingLayout and fix Windows build by providing stub implementation 2012-08-27 13:48:48 +00:00
sanitizer_printf.cc [asan] get rid of AsanPrintf in favor of Printf from sanitizer_common 2012-08-28 11:34:40 +00:00
sanitizer_procmaps.h [Sanitizer] Allow to create stub MemoryMappingLayout on Windows 2012-08-28 08:27:08 +00:00
sanitizer_stacktrace.cc [asan] fix the cmake build (hopefully) 2012-08-28 14:48:28 +00:00
sanitizer_stacktrace.h [asan] fix the cmake build (hopefully) 2012-08-28 14:48:28 +00:00
sanitizer_symbolizer.cc [Sanitizer] Switch the symbolization strategy that would be used by sanitizer tools family: as compiling in-process symbolizer into runtime involves certain difficulties, we may instead launch an external symbolizer program (fork + execl) in a subprocess and communicate with it via pipe. 2012-08-23 07:32:06 +00:00
sanitizer_symbolizer.h [Sanitizer] Switch the symbolization strategy that would be used by sanitizer tools family: as compiling in-process symbolizer into runtime involves certain difficulties, we may instead launch an external symbolizer program (fork + execl) in a subprocess and communicate with it via pipe. 2012-08-23 07:32:06 +00:00
sanitizer_symbolizer_linux.cc A few tweaks for building ASanRT against Android NDK. 2012-08-27 11:15:55 +00:00
sanitizer_symbolizer_mac.cc [Sanitizer] Switch the symbolization strategy that would be used by sanitizer tools family: as compiling in-process symbolizer into runtime involves certain difficulties, we may instead launch an external symbolizer program (fork + execl) in a subprocess and communicate with it via pipe. 2012-08-23 07:32:06 +00:00
sanitizer_symbolizer_win.cc [Sanitizer] Switch the symbolization strategy that would be used by sanitizer tools family: as compiling in-process symbolizer into runtime involves certain difficulties, we may instead launch an external symbolizer program (fork + execl) in a subprocess and communicate with it via pipe. 2012-08-23 07:32:06 +00:00
sanitizer_win.cc [Sanitizer] One more try to fix Windows build 2012-08-27 14:08:53 +00:00