1 //===-- sanitizer/coverage_interface.h --------------------------*- C++ -*-===// 2 // 3 // This file is distributed under the University of Illinois Open Source 4 // License. See LICENSE.TXT for details. 5 // 6 //===----------------------------------------------------------------------===// 7 // 8 // Public interface for sanitizer coverage. 9 //===----------------------------------------------------------------------===// 10 11 #ifndef SANITIZER_COVERAG_INTERFACE_H 12 #define SANITIZER_COVERAG_INTERFACE_H 13 14 #include <sanitizer/common_interface_defs.h> 15 16 #ifdef __cplusplus 17 extern "C" { 18 #endif 19 20 // Record and dump coverage info. 21 void __sanitizer_cov_dump(void); 22 23 // Clear collected coverage info. 24 void __sanitizer_cov_reset(void); 25 26 // Dump collected coverage info. Sorts pcs by module into individual .sancov 27 // files. 28 void __sanitizer_dump_coverage(const uintptr_t *pcs, uintptr_t len); 29 30 #ifdef __cplusplus 31 } // extern "C" 32 #endif 33 34 #endif // SANITIZER_COVERAG_INTERFACE_H 35