summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/sanitizer_common/lit.common.cfg
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-05-29 22:31:28 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-05-29 22:31:28 +0000
commit8e9c70be7fc52db0a08d58ecfa29d33dd505a957 (patch)
tree941722642a9e981cdfd8ac196cbfef6f1fb338e5 /compiler-rt/test/sanitizer_common/lit.common.cfg
parent2cfd9d574d8f75491a5054116bae1f52fc75748c (diff)
downloadbcm5719-llvm-8e9c70be7fc52db0a08d58ecfa29d33dd505a957.tar.gz
bcm5719-llvm-8e9c70be7fc52db0a08d58ecfa29d33dd505a957.zip
Add descriptive names to sanitizer entries in /proc/self/maps. Helps debugging.
This is done by creating a named shared memory region, unlinking it and setting up a private (i.e. copy-on-write) mapping of that instead of a regular anonymous mapping. I've experimented with regular (sparse) files, but they can not be scaled to the size of MSan shadow mapping, at least on Linux/X86_64 and ext3 fs. Controlled by a common flag, decorate_proc_maps, disabled by default. This patch has a few shortcomings: * not all mappings are annotated, especially in TSan. * our handling of memset() of shadow via mmap() puts small anonymous mappings inside larger named mappings, which looks ugly and can, in theory, hit the mapping number limit. llvm-svn: 238621
Diffstat (limited to 'compiler-rt/test/sanitizer_common/lit.common.cfg')
-rw-r--r--compiler-rt/test/sanitizer_common/lit.common.cfg1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/test/sanitizer_common/lit.common.cfg b/compiler-rt/test/sanitizer_common/lit.common.cfg
index fb37815ff47..f2d3fec6baa 100644
--- a/compiler-rt/test/sanitizer_common/lit.common.cfg
+++ b/compiler-rt/test/sanitizer_common/lit.common.cfg
@@ -30,6 +30,7 @@ def build_invocation(compile_flags):
config.substitutions.append( ("%clang ", build_invocation(clang_cflags)) )
config.substitutions.append( ("%clangxx ", build_invocation(clang_cxxflags)) )
+config.substitutions.append( ("%tool_name", config.tool_name) )
config.substitutions.append( ("%tool_options", tool_options) )
config.suffixes = ['.c', '.cc', '.cpp']
OpenPOWER on IntegriCloud