[PATCH] D28263: [sanitizer] Track which modules are instrumented in LoadedModule objects
Kuba (Brecka) Mracek via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 3 16:27:11 PST 2017
kubabrecka created this revision.
kubabrecka added reviewers: dvyukov, zaks.anna, filcab, eugenis, kcc.
kubabrecka added a subscriber: llvm-commits.
kubabrecka set the repository for this revision to rL LLVM.
kubabrecka added a project: Sanitizers.
This patch adds tracking which modules are instrumented and which are not. On macOS, instrumented modules link against the ASan/TSan/... dylib, so we can just check if such a load command exists or not.
This is needed to implement a feature that needs to know if an interceptor is called from instrumented code or not (then it's likely a system library). The patch for that will follow.
Repository:
rL LLVM
https://reviews.llvm.org/D28263
Files:
lib/sanitizer_common/sanitizer_common.cc
lib/sanitizer_common/sanitizer_common.h
lib/sanitizer_common/sanitizer_procmaps.h
lib/sanitizer_common/sanitizer_procmaps_mac.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28263.82972.patch
Type: text/x-patch
Size: 5549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170104/2cde2641/attachment.bin>
More information about the llvm-commits
mailing list