coverage_interface.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. //===-- sanitizer/coverage_interface.h --------------------------*- C++ -*-===//
  2. //
  3. // 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
  6. //
  7. //===----------------------------------------------------------------------===//
  8. //
  9. // Public interface for sanitizer coverage.
  10. //===----------------------------------------------------------------------===//
  11. #ifndef SANITIZER_COVERAG_INTERFACE_H
  12. #define SANITIZER_COVERAG_INTERFACE_H
  13. #include <sanitizer/common_interface_defs.h>
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. // Record and dump coverage info.
  18. void __sanitizer_cov_dump(void);
  19. // Clear collected coverage info.
  20. void __sanitizer_cov_reset(void);
  21. // Dump collected coverage info. Sorts pcs by module into individual .sancov
  22. // files.
  23. void __sanitizer_dump_coverage(const uintptr_t *pcs, uintptr_t len);
  24. #ifdef __cplusplus
  25. } // extern "C"
  26. #endif
  27. #endif // SANITIZER_COVERAG_INTERFACE_H