llvm-project/compiler-rt/lib/asan
Alexey Samsonov 920b3b9a0c [ASan] Move malloc stats collection away from AsanThreadRegistry class.
llvm-svn: 177508
2013-03-20 10:11:24 +00:00
..
lit_tests [ASan] remove -fsanitize=init-order from lit tests as now it's implied by -fsanitize=address 2013-03-14 12:43:03 +00:00
scripts [asan] added flag -d|--demangle to asan_symbolize.py, makes addr2line/llvm-symbolizer demangle the functions names 2013-02-18 08:02:16 +00:00
tests [asan] make the __asan_get_heap_size more robust 2013-03-18 10:52:25 +00:00
CMakeLists.txt [Sanitizer] Build ASan, TSan and MSan runtimes with -fno-rtti. 2013-03-13 09:18:30 +00:00
Makefile.mk [ASan] Delete asan/dynamic dir and temporarily move the interposers declarations to asan_intercepted_functions.h 2013-02-20 15:46:02 +00:00
README.txt [ASan] Nuke output_tests/ in favor of lit_tests/. Stop using Makefile.old. 2012-09-06 06:39:02 +00:00
asan_allocator.cc [ASan] Move malloc stats collection away from AsanThreadRegistry class. 2013-03-20 10:11:24 +00:00
asan_allocator.h [asan] Switch to allocator2 on Android. 2013-03-18 09:22:58 +00:00
asan_allocator2.cc [ASan] Move malloc stats collection away from AsanThreadRegistry class. 2013-03-20 10:11:24 +00:00
asan_fake_stack.cc [ASan] Move GetCurrentThread/SetCurrentThread from AsanThreadRegistry class into plain functions: they don't actually use registry 2013-03-20 09:23:28 +00:00
asan_flags.h [ASan] Add the memcmp_strict flag (1 by default) that controls the behavior of accessibility checks in memcmp. 2013-02-28 14:09:30 +00:00
asan_globals.cc [asan] Fix nonsensical reports of partial right OOB. 2013-02-05 14:32:03 +00:00
asan_intercepted_functions.h [sanitizer] Replace more platform checks with SANITIZER_ constants. 2013-03-19 14:33:38 +00:00
asan_interceptors.cc [ASan] Move GetCurrentThread/SetCurrentThread from AsanThreadRegistry class into plain functions: they don't actually use registry 2013-03-20 09:23:28 +00:00
asan_interceptors.h [ASan] Delete the code related to static runtime on OS X. 2013-02-05 15:57:12 +00:00
asan_interface_internal.h [asan] while generating the description of a global variable, emit the module name in a separate field, thus not duplicating this information if every description. This decreases the binary size (observed up to 3%). https://code.google.com/p/address-sanitizer/issues/detail?id=168 . This changes the asan API version. compiler-rt part, llvm-part will follow 2013-03-18 08:04:55 +00:00
asan_internal.h [sanitizer] More renamed macros. 2013-03-19 14:54:17 +00:00
asan_linux.cc [ASan] Move GetCurrentThread/SetCurrentThread from AsanThreadRegistry class into plain functions: they don't actually use registry 2013-03-20 09:23:28 +00:00
asan_lock.h asan/tsan: move blocking mutex from asan to sanitizer_common 2013-01-14 07:51:39 +00:00
asan_mac.cc [ASan] Move malloc stats collection away from AsanThreadRegistry class. 2013-03-20 10:11:24 +00:00
asan_mac.h [sanitizer] Replace more platform checks with SANITIZER_ constants. 2013-03-19 14:33:38 +00:00
asan_malloc_linux.cc [sanitizer] Replace more platform checks with SANITIZER_ constants. 2013-03-19 14:33:38 +00:00
asan_malloc_mac.cc [ASan] Move malloc stats collection away from AsanThreadRegistry class. 2013-03-20 10:11:24 +00:00
asan_malloc_win.cc [sanitizer] More renamed macros. 2013-03-19 14:54:17 +00:00
asan_mapping.h [sanitizer] Move ASan platform macros to sanitizer_common and rename them appropriately. 2013-03-19 13:54:41 +00:00
asan_new_delete.cc [sanitizer] Replace more platform checks with SANITIZER_ constants. 2013-03-19 14:33:38 +00:00
asan_poisoning.cc [ASan] Split ASan interface header into private and public parts. Add a test that makes sure users can include interface header 2013-01-31 13:46:14 +00:00
asan_posix.cc [ASan] Move GetCurrentThread/SetCurrentThread from AsanThreadRegistry class into plain functions: they don't actually use registry 2013-03-20 09:23:28 +00:00
asan_preinit.cc [sanitizer] Replace more platform checks with SANITIZER_ constants. 2013-03-19 14:33:38 +00:00
asan_report.cc [ASan] Move GetCurrentThread/SetCurrentThread from AsanThreadRegistry class into plain functions: they don't actually use registry 2013-03-20 09:23:28 +00:00
asan_report.h [asan] Fix nonsensical reports of partial right OOB. 2013-02-05 14:32:03 +00:00
asan_rtl.cc [ASan] Move GetCurrentThread/SetCurrentThread from AsanThreadRegistry class into plain functions: they don't actually use registry 2013-03-20 09:23:28 +00:00
asan_stack.cc [sanitizer] Replace more platform checks with SANITIZER_ constants. 2013-03-19 14:33:38 +00:00
asan_stack.h [asan] add two asan flags: fast_unwind_on_fatal and fast_unwind_on_malloc to allow using the slow CFI-based unwinder 2012-12-13 09:34:23 +00:00
asan_stats.cc [ASan] Move malloc stats collection away from AsanThreadRegistry class. 2013-03-20 10:11:24 +00:00
asan_stats.h [ASan] Move malloc stats collection away from AsanThreadRegistry class. 2013-03-20 10:11:24 +00:00
asan_thread.cc [ASan] Move GetCurrentThread/SetCurrentThread from AsanThreadRegistry class into plain functions: they don't actually use registry 2013-03-20 09:23:28 +00:00
asan_thread.h [ASan] Move GetCurrentThread/SetCurrentThread from AsanThreadRegistry class into plain functions: they don't actually use registry 2013-03-20 09:23:28 +00:00
asan_thread_registry.cc [ASan] Move malloc stats collection away from AsanThreadRegistry class. 2013-03-20 10:11:24 +00:00
asan_thread_registry.h [ASan] Move malloc stats collection away from AsanThreadRegistry class. 2013-03-20 10:11:24 +00:00
asan_win.cc [sanitizer] More renamed macros. 2013-03-19 14:54:17 +00:00

README.txt

AddressSanitizer RT
================================
This directory contains sources of the AddressSanitizer (asan) run-time library.
We are in the process of integrating AddressSanitizer with LLVM, stay tuned.

Directory structre:
README.txt       : This file.
Makefile.mk      : File for make-based build.
CMakeLists.txt   : File for cmake-based build.
asan_*.{cc,h}    : Sources of the asan run-time lirbary.
scripts/*        : Helper scripts.
tests/*          : ASan unit tests.
lit_tests/*      : ASan output tests.

Also ASan runtime needs the following libraries:
lib/interception/      : Machinery used to intercept function calls.
lib/sanitizer_common/  : Code shared between ASan and TSan.

Currently ASan runtime can be built by both make and cmake build systems.
(see compiler-rt/make and files Makefile.mk for make-based build and
files CMakeLists.txt for cmake-based build).

ASan unit and output tests work only with cmake. You may run this
command from the root of your cmake build tree:

make check-asan

For more instructions see:
http://code.google.com/p/address-sanitizer/wiki/HowToBuild