[PATCH] [Sanitizer] Add Symbolizer::AddHooks() and use it in TSan and MSan.

Alexey Samsonov samsonov at google.com
Wed Oct 30 11:25:54 PDT 2013


Hi eugenis, dvyukov,

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.

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

Files:
  lib/tsan/rtl/tsan_symbolize.cc
  lib/tsan/rtl/tsan_symbolize.h
  lib/tsan/rtl/tsan_rtl.cc
  lib/sanitizer_common/sanitizer_symbolizer.cc
  lib/sanitizer_common/sanitizer_symbolizer.h
  lib/sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
  lib/msan/msan_report.cc
  lib/msan/msan.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D2067.1.patch
Type: text/x-patch
Size: 7249 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131030/c995cea1/attachment.bin>


More information about the llvm-commits mailing list