1 //===-- tsan_report.h -------------------------------------------*- C++ -*-===//
3 // This file is distributed under the University of Illinois Open Source
4 // License. See LICENSE.TXT for details.
6 //===----------------------------------------------------------------------===//
8 // This file is a part of ThreadSanitizer (TSan), a race detector.
10 //===----------------------------------------------------------------------===//
14 #include "tsan_defs.h"
15 #include "tsan_vector.h"
21 ReportTypeUseAfterFree
,
23 ReportTypeMutexDestroyLocked
,
24 ReportTypeSignalUnsafe
,
25 ReportTypeErrnoInSignal
39 struct ReportMopMutex
{
50 Vector
<ReportMopMutex
> mset
;
56 enum ReportLocationType
{
64 struct ReportLocation
{
65 ReportLocationType type
;
96 Vector
<ReportStack
*> stacks
;
97 Vector
<ReportMop
*> mops
;
98 Vector
<ReportLocation
*> locs
;
99 Vector
<ReportMutex
*> mutexes
;
100 Vector
<ReportThread
*> threads
;
107 ReportDesc(const ReportDesc
&);
108 void operator = (const ReportDesc
&);
111 // Format and output the report to the console/log. No additional logic.
112 void PrintReport(const ReportDesc
*rep
);
113 void PrintStack(const ReportStack
*stack
);
115 } // namespace __tsan
117 #endif // TSAN_REPORT_H