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"
22 ReportTypeUseAfterFree
,
24 ReportTypeMutexDestroyLocked
,
25 ReportTypeMutexDoubleLock
,
26 ReportTypeMutexBadUnlock
,
27 ReportTypeMutexBadReadLock
,
28 ReportTypeMutexBadReadUnlock
,
29 ReportTypeSignalUnsafe
,
30 ReportTypeErrnoInSignal
,
45 struct ReportMopMutex
{
56 Vector
<ReportMopMutex
> mset
;
62 enum ReportLocationType
{
70 struct ReportLocation
{
71 ReportLocationType type
;
103 Vector
<ReportStack
*> stacks
;
104 Vector
<ReportMop
*> mops
;
105 Vector
<ReportLocation
*> locs
;
106 Vector
<ReportMutex
*> mutexes
;
107 Vector
<ReportThread
*> threads
;
108 Vector
<int> unique_tids
;
116 ReportDesc(const ReportDesc
&);
117 void operator = (const ReportDesc
&);
120 // Format and output the report to the console/log. No additional logic.
121 void PrintReport(const ReportDesc
*rep
);
122 void PrintStack(const ReportStack
*stack
);
124 } // namespace __tsan
126 #endif // TSAN_REPORT_H