msan_report.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. //===-- msan_report.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. /// \file
  10. /// This file is a part of MemorySanitizer. MSan-private header for error
  11. /// reporting functions.
  12. ///
  13. //===----------------------------------------------------------------------===//
  14. #ifndef MSAN_REPORT_H
  15. #define MSAN_REPORT_H
  16. #include "sanitizer_common/sanitizer_internal_defs.h"
  17. #include "sanitizer_common/sanitizer_stacktrace.h"
  18. namespace __msan {
  19. void ReportUMR(StackTrace *stack, u32 origin);
  20. void ReportExpectedUMRNotFound(StackTrace *stack);
  21. void ReportStats();
  22. void ReportAtExitStatistics();
  23. void DescribeMemoryRange(const void *x, uptr size);
  24. void ReportUMRInsideAddressRange(const char *what, const void *start, uptr size,
  25. uptr offset);
  26. } // namespace __msan
  27. #endif // MSAN_REPORT_H