llvm-project/compiler-rt/lib/tsan
Alexey Samsonov 627e2c0dd7 [Sanitizer] Add Symbolizer::AddHooks() and use it in TSan and MSan.
Summary:
TSan and MSan need to know if interceptor was called by the
user code or by the symbolizer and use pre- and post-symbolization hooks
for that. Make Symbolizer class responsible for calling these hooks instead.
This would ensure the hooks are only called when necessary (during
in-process symbolization, they are not needed for out-of-process) and
save specific sanitizers from tracing all places in the code where symbolization
will be performed.

Reviewers: eugenis, dvyukov

Reviewed By: eugenis

CC: llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D2067

llvm-svn: 193807
2013-10-31 21:44:07 +00:00
..
benchmarks [tsan] ThreadSanitizer tests and micro benchmarks. No makefiles yet. 2012-05-10 14:18:22 +00:00
go tsan: add memory_limit_mb flag 2013-10-03 17:14:35 +00:00
lit_tests tsan/asan: support pthread_setname_np to set thread names 2013-10-29 10:30:39 +00:00
rtl [Sanitizer] Add Symbolizer::AddHooks() and use it in TSan and MSan. 2013-10-31 21:44:07 +00:00
tests tsan: move shadow stack from thread descriptors to fixed addresses 2013-10-16 15:35:12 +00:00
CMakeLists.txt [TSan] Add a couple of compiler warnings to TSan runtime compile flags 2013-08-29 12:08:36 +00:00
Makefile.mk [tsan] makefile machinery to build tsan-rt (linux-x86_64 only) 2012-05-15 15:17:35 +00:00
Makefile.old [TSan] Use --whole-archive around TSan runtime in old TSan makefiles. Fix a Go build 2013-09-11 11:06:06 +00:00
analyze_libtsan.sh tsan: add interface functions for unaligned access, e.g. __sanitizer_unaligned_load16 2013-04-30 11:56:56 +00:00
check_analyze.sh [tsan] old-dstyle Makefile for tests; two helper scripts that analyze the assembly code of the hot functions 2012-05-10 15:10:03 +00:00
check_cmake.sh tsan: do not build llvm from scratch on each presubmit 2013-10-15 12:54:50 +00:00