]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/compiler-rt/include/sanitizer/coverage_interface.h
MFV r326785: 8880 improve DTrace error checking
[FreeBSD/FreeBSD.git] / contrib / compiler-rt / include / sanitizer / coverage_interface.h
1 //===-- sanitizer/coverage_interface.h --------------------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // Public interface for sanitizer coverage.
11 //===----------------------------------------------------------------------===//
12
13 #ifndef SANITIZER_COVERAG_INTERFACE_H
14 #define SANITIZER_COVERAG_INTERFACE_H
15
16 #include <sanitizer/common_interface_defs.h>
17
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21
22   // Record and dump coverage info.
23   void __sanitizer_cov_dump();
24
25   //  Dump collected coverage info. Sorts pcs by module into individual
26   //  .sancov files.
27   void __sanitizer_dump_coverage(const uintptr_t *pcs, uintptr_t len);
28
29 #ifdef __cplusplus
30 }  // extern "C"
31 #endif
32
33 #endif  // SANITIZER_COVERAG_INTERFACE_H