xref: /freebsd/contrib/llvm-project/compiler-rt/lib/msan/msan_report.h (revision 06c3fb2749bda94cb5201f81ffdb8fa6c3161b2e)
10b57cec5SDimitry Andric //===-- msan_report.h -------------------------------------------*- C++ -*-===//
20b57cec5SDimitry Andric //
30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60b57cec5SDimitry Andric //
70b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
80b57cec5SDimitry Andric ///
90b57cec5SDimitry Andric /// \file
100b57cec5SDimitry Andric /// This file is a part of MemorySanitizer. MSan-private header for error
110b57cec5SDimitry Andric /// reporting functions.
120b57cec5SDimitry Andric ///
130b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
140b57cec5SDimitry Andric 
150b57cec5SDimitry Andric #ifndef MSAN_REPORT_H
160b57cec5SDimitry Andric #define MSAN_REPORT_H
170b57cec5SDimitry Andric 
180b57cec5SDimitry Andric #include "sanitizer_common/sanitizer_internal_defs.h"
190b57cec5SDimitry Andric #include "sanitizer_common/sanitizer_stacktrace.h"
200b57cec5SDimitry Andric 
210b57cec5SDimitry Andric namespace __msan {
220b57cec5SDimitry Andric 
230b57cec5SDimitry Andric void ReportUMR(StackTrace *stack, u32 origin);
240b57cec5SDimitry Andric void ReportExpectedUMRNotFound(StackTrace *stack);
250b57cec5SDimitry Andric void ReportStats();
260b57cec5SDimitry Andric void ReportAtExitStatistics();
270b57cec5SDimitry Andric void DescribeMemoryRange(const void *x, uptr size);
28*06c3fb27SDimitry Andric void ReportUMRInsideAddressRange(const char *function, const void *start,
29*06c3fb27SDimitry Andric                                  uptr size, uptr offset);
300b57cec5SDimitry Andric 
310b57cec5SDimitry Andric }  // namespace __msan
320b57cec5SDimitry Andric 
330b57cec5SDimitry Andric #endif  // MSAN_REPORT_H
34