coverage_interface.h 1.0 KB

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