aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/clang14-rt/include/sanitizer/coverage_interface.h
blob: c063cfe60c5ba34e793951bc478da7e5a9932a18 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//===-- sanitizer/coverage_interface.h --------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// Public interface for sanitizer coverage.
//===----------------------------------------------------------------------===//

#ifndef SANITIZER_COVERAG_INTERFACE_H
#define SANITIZER_COVERAG_INTERFACE_H

#include <sanitizer/common_interface_defs.h>

#ifdef __cplusplus
extern "C" {
#endif

  // Record and dump coverage info.
  void __sanitizer_cov_dump(void);

  // Clear collected coverage info.
  void __sanitizer_cov_reset(void);

  // Dump collected coverage info. Sorts pcs by module into individual .sancov
  // files.
  void __sanitizer_dump_coverage(const uintptr_t *pcs, uintptr_t len);

#ifdef __cplusplus
}  // extern "C"
#endif

#endif  // SANITIZER_COVERAG_INTERFACE_H