[PATCH] D61708: [TSan] Support `ignore_noninstrumented_modules` on Linux

Julian Lettner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 9 14:40:04 PDT 2019


yln updated this revision to Diff 198912.
yln edited the summary of this revision.
yln added a comment.
Herald added a subscriber: jfb.

Chang symbol name check to require an exact match with the TSan
initializer called from the module ctor. This should avoid
accidental matches, e.g., `__tsan_testonly_barrier_wait` in tests.
My assumption is that this symbol is present in all modules
instrumented with TSan.

Add non-platform specific test. (I kept the existing test for
Darwin because it tests a specific system API.)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61708/new/

https://reviews.llvm.org/D61708

Files:
  compiler-rt/lib/sanitizer_common/sanitizer_common.cc
  compiler-rt/lib/sanitizer_common/sanitizer_common.h
  compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc
  compiler-rt/test/tsan/Darwin/ignore-noninstrumented.mm
  compiler-rt/test/tsan/ignore-noninstrumented.cc
  compiler-rt/test/tsan/libdispatch/lit.local.cfg

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61708.198912.patch
Type: text/x-patch
Size: 10282 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190509/bab68769/attachment.bin>


More information about the llvm-commits mailing list