blob: c063cfe60c5ba34e793951bc478da7e5a9932a18 [file] [log] [blame]
Logan Chien55afb0a2018-10-15 10:42:14 +08001//===-- sanitizer/coverage_interface.h --------------------------*- C++ -*-===//
2//
Logan Chiendbcf4122019-03-21 10:50:25 +08003// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
Logan Chien55afb0a2018-10-15 10:42:14 +08006//
7//===----------------------------------------------------------------------===//
8//
9// Public interface for sanitizer coverage.
10//===----------------------------------------------------------------------===//
11
12#ifndef SANITIZER_COVERAG_INTERFACE_H
13#define SANITIZER_COVERAG_INTERFACE_H
14
15#include <sanitizer/common_interface_defs.h>
16
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21 // Record and dump coverage info.
22 void __sanitizer_cov_dump(void);
23
24 // Clear collected coverage info.
25 void __sanitizer_cov_reset(void);
26
27 // Dump collected coverage info. Sorts pcs by module into individual .sancov
28 // files.
29 void __sanitizer_dump_coverage(const uintptr_t *pcs, uintptr_t len);
30
31#ifdef __cplusplus
32} // extern "C"
33#endif
34
35#endif // SANITIZER_COVERAG_INTERFACE_H