aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2016-01-06 20:03:21 +0000
committerDimitry Andric <dim@FreeBSD.org>2016-01-06 20:03:21 +0000
commit4e3a0d5a8f750527f2f433019967f8f8214c558a (patch)
treeab93a9af59dcc83ceaf0deabab831818cc44e49c /include
parent5c909fa013fc285f010a95e8d387e0ef3412da9c (diff)
downloadsrc-4e3a0d5a8f750527f2f433019967f8f8214c558a.tar.gz
src-4e3a0d5a8f750527f2f433019967f8f8214c558a.zip
Vendor import of compiler-rt trunk r256945:vendor/compiler-rt/compiler-rt-trunk-r256945
Notes
Notes: svn path=/vendor/compiler-rt/dist/; revision=293253 svn path=/vendor/compiler-rt/compiler-rt-trunk-r256945/; revision=293254; tag=vendor/compiler-rt/compiler-rt-trunk-r256945
Diffstat (limited to 'include')
-rw-r--r--include/sanitizer/coverage_interface.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sanitizer/coverage_interface.h b/include/sanitizer/coverage_interface.h
index b93111b859bc..2dcc09fc8499 100644
--- a/include/sanitizer/coverage_interface.h
+++ b/include/sanitizer/coverage_interface.h
@@ -41,6 +41,13 @@ extern "C" {
// Some of the entries in *data will be zero.
uintptr_t __sanitizer_get_coverage_guards(uintptr_t **data);
+ // Set *data to the growing buffer with covered PCs and return the size
+ // of the buffer. The entries are never zero.
+ // When only unique pcs are collected, the size is equal to
+ // __sanitizer_get_total_unique_coverage.
+ // WARNING: EXPERIMENTAL API.
+ uintptr_t __sanitizer_get_coverage_pc_buffer(uintptr_t **data);
+
// The coverage instrumentation may optionally provide imprecise counters.
// Rather than exposing the counter values to the user we instead map
// the counters to a bitset.