]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - contrib/compiler-rt/lib/hwasan/hwasan_report.h
Merge ^/head r338690 through r338730.
[FreeBSD/FreeBSD.git] / contrib / compiler-rt / lib / hwasan / hwasan_report.h
1 //===-- hwasan_report.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 /// \file
11 /// This file is a part of HWAddressSanitizer. HWASan-private header for error
12 /// reporting functions.
13 ///
14 //===----------------------------------------------------------------------===//
15
16 #ifndef HWASAN_REPORT_H
17 #define HWASAN_REPORT_H
18
19 #include "sanitizer_common/sanitizer_internal_defs.h"
20 #include "sanitizer_common/sanitizer_stacktrace.h"
21
22 namespace __hwasan {
23
24 void ReportInvalidAccess(StackTrace *stack, u32 origin);
25 void ReportStats();
26 void ReportInvalidAccessInsideAddressRange(const char *what, const void *start,
27                                            uptr size, uptr offset);
28 void ReportTagMismatch(StackTrace *stack, uptr addr, uptr access_size,
29                        bool is_store);
30
31 void ReportAtExitStatistics();
32
33
34 }  // namespace __hwasan
35
36 #endif  // HWASAN_REPORT_H