diff options
author | Kostya Serebryany <kcc@google.com> | 2015-01-28 22:39:44 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2015-01-28 22:39:44 +0000 |
commit | f78184e82923009a6026a1009aa80cd0f3a13d54 (patch) | |
tree | 8ab12c7bebfaace6eae0da2aec2d42f2f64f5f9b /include | |
parent | f52939099ce1b24380aae28e12f4051a9e7703ed (diff) |
[sanitizer] allow to reset the bb/edge coverage data inside the process while it is running (single-threaded). Also expose the current coverage set to the process.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@227387 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/sanitizer/common_interface_defs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sanitizer/common_interface_defs.h b/include/sanitizer/common_interface_defs.h index 4c715c66b..cfb06eac0 100644 --- a/include/sanitizer/common_interface_defs.h +++ b/include/sanitizer/common_interface_defs.h @@ -74,6 +74,14 @@ extern "C" { // This can be useful for coverage-directed in-process fuzzers. uintptr_t __sanitizer_get_total_unique_coverage(); + // Reset the basic-block (edge) coverage to the initial state. + // Useful for in-process fuzzing to start collecting coverage from scratch. + // Experimental, will likely not work for multi-threaded process. + void __sanitizer_reset_coverage(); + // Set *data to the array of covered PCs and return the size of that array. + // Some of the entries in *data will be zero. + uintptr_t __sanitizer_get_coverage_guards(uintptr_t **data); + // Annotate the current state of a contiguous container, such as // std::vector, std::string or similar. // A contiguous container is a container that keeps all of its elements |