164360056SAlex Shlyapnikov //===-- msan_report.h -------------------------------------------*- C++ -*-===// 264360056SAlex Shlyapnikov // 32946cd70SChandler Carruth // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 42946cd70SChandler Carruth // See https://llvm.org/LICENSE.txt for license information. 52946cd70SChandler Carruth // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 664360056SAlex Shlyapnikov // 764360056SAlex Shlyapnikov //===----------------------------------------------------------------------===// 864360056SAlex Shlyapnikov /// 964360056SAlex Shlyapnikov /// \file 1064360056SAlex Shlyapnikov /// This file is a part of MemorySanitizer. MSan-private header for error 1164360056SAlex Shlyapnikov /// reporting functions. 1264360056SAlex Shlyapnikov /// 1364360056SAlex Shlyapnikov //===----------------------------------------------------------------------===// 1464360056SAlex Shlyapnikov 1564360056SAlex Shlyapnikov #ifndef MSAN_REPORT_H 1664360056SAlex Shlyapnikov #define MSAN_REPORT_H 1764360056SAlex Shlyapnikov 1864360056SAlex Shlyapnikov #include "sanitizer_common/sanitizer_internal_defs.h" 1964360056SAlex Shlyapnikov #include "sanitizer_common/sanitizer_stacktrace.h" 2064360056SAlex Shlyapnikov 2164360056SAlex Shlyapnikov namespace __msan { 2264360056SAlex Shlyapnikov 2364360056SAlex Shlyapnikov void ReportUMR(StackTrace *stack, u32 origin); 2464360056SAlex Shlyapnikov void ReportExpectedUMRNotFound(StackTrace *stack); 2564360056SAlex Shlyapnikov void ReportStats(); 2664360056SAlex Shlyapnikov void ReportAtExitStatistics(); 2764360056SAlex Shlyapnikov void DescribeMemoryRange(const void *x, uptr size); 28*5732cdc1SMarco Elver void ReportUMRInsideAddressRange(const char *function, const void *start, 29*5732cdc1SMarco Elver uptr size, uptr offset); 3064360056SAlex Shlyapnikov 3164360056SAlex Shlyapnikov } // namespace __msan 3264360056SAlex Shlyapnikov 3364360056SAlex Shlyapnikov #endif // MSAN_REPORT_H 34