[sanitizer] Support sandboxing in sanitizer coverage.
authorSergey Matveev <earthdok@google.com>
Mon, 19 May 2014 12:53:03 +0000 (12:53 +0000)
committerSergey Matveev <earthdok@google.com>
Mon, 19 May 2014 12:53:03 +0000 (12:53 +0000)
commit6cb47a083bf52d2bea227ab2da5cb00c6b7eb816
tree4845696f3e4b4b9f79b0e72d218e2d3be6c4e7c6
parentfcfc213c3f2279fe12a6fc343937874a7dbbde62
[sanitizer] Support sandboxing in sanitizer coverage.

Summary:
Sandboxed code may now pass additional arguments to
__sanitizer_sandbox_on_notify() to force all coverage data to be dumped to a
single file (the default is one file per module). The user may supply a file or
socket to write to. The latter option can be used to broker out the file writing
functionality. If -1  is passed, we pre-open a file.

llvm-svn: 209121
compiler-rt/include/sanitizer/common_interface_defs.h
compiler-rt/lib/sanitizer_common/sanitizer_common.cc
compiler-rt/lib/sanitizer_common/sanitizer_common.h
compiler-rt/lib/sanitizer_common/sanitizer_coverage.cc
compiler-rt/lib/sanitizer_common/sanitizer_internal_defs.h
compiler-rt/lib/sanitizer_common/sanitizer_linux.cc
compiler-rt/lib/sanitizer_common/sanitizer_mac.cc
compiler-rt/lib/sanitizer_common/sanitizer_win.cc
compiler-rt/lib/sanitizer_common/scripts/sancov.py
compiler-rt/test/asan/TestCases/Linux/coverage-sandboxing.cc [new file with mode: 0644]
compiler-rt/test/asan/lit.cfg