Path: blob/main/contrib/llvm-project/compiler-rt/include/sanitizer/coverage_interface.h
35236 views
//===-- sanitizer/coverage_interface.h --------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//7//8// Public interface for sanitizer coverage.9//===----------------------------------------------------------------------===//1011#ifndef SANITIZER_COVERAG_INTERFACE_H12#define SANITIZER_COVERAG_INTERFACE_H1314#include <sanitizer/common_interface_defs.h>1516#ifdef __cplusplus17extern "C" {18#endif1920// Record and dump coverage info.21void SANITIZER_CDECL __sanitizer_cov_dump(void);2223// Clear collected coverage info.24void SANITIZER_CDECL __sanitizer_cov_reset(void);2526// Dump collected coverage info. Sorts pcs by module into individual .sancov27// files.28void SANITIZER_CDECL __sanitizer_dump_coverage(const uintptr_t *pcs,29uintptr_t len);3031#ifdef __cplusplus32} // extern "C"33#endif3435#endif // SANITIZER_COVERAG_INTERFACE_H363738