diff options
author | Sergey Matveev <earthdok@google.com> | 2014-05-21 13:43:52 +0000 |
---|---|---|
committer | Sergey Matveev <earthdok@google.com> | 2014-05-21 13:43:52 +0000 |
commit | 42d4b71e18557569db27f2d9e664207008fd6bee (patch) | |
tree | 72692af7f7b1405c82fc71dc1807345f22769097 /include/sanitizer | |
parent | ccd2c552a8ae40acc442816012766e3460ba7938 (diff) |
[sanitizer] Add __sanitizer_maybe_open_cov_file().
Summary: Add a new interface function required for coverage sandboxing support.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@209298 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/sanitizer')
-rw-r--r-- | include/sanitizer/common_interface_defs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sanitizer/common_interface_defs.h b/include/sanitizer/common_interface_defs.h index dce95d9d8..082a931ff 100644 --- a/include/sanitizer/common_interface_defs.h +++ b/include/sanitizer/common_interface_defs.h @@ -66,6 +66,10 @@ extern "C" { void __sanitizer_cov_init(); // Record and dump coverage info. void __sanitizer_cov_dump(); + // Open <name>.sancov.packed in the coverage directory and return the file + // descriptor. Returns -1 on failure, or if coverage dumping is disabled. + // This is intended for use by sandboxing code. + intptr_t __sanitizer_maybe_open_cov_file(const char *name); // Annotate the current state of a contiguous container, such as // std::vector, std::string or similar. |