1 //===-- tsan_stat.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 //===----------------------------------------------------------------------===//
18 // Memory access processing related stuff.
22 StatMop1
, // These must be consequtive.
32 StatShadowNonZero
, // Derived.
35 StatShadowNotIntersect
,
37 StatShadowAnotherThread
,
72 StatClockAcquireEmpty
,
73 StatClockAcquireFastRelease
,
74 StatClockAcquireLarge
,
75 StatClockAcquireRepeat
,
77 StatClockAcquiredSomething
,
80 StatClockReleaseResize
,
81 StatClockReleaseFast1
,
82 StatClockReleaseFast2
,
85 StatClockReleaseAcquired
,
86 StatClockReleaseClearTail
,
87 // Clocks - release store.
93 // Clocks - acquire-release.
94 StatClockAcquireRelease
,
121 // Dynamic annotations.
123 StatAnnotateHappensBefore
,
124 StatAnnotateHappensAfter
,
125 StatAnnotateCondVarSignal
,
126 StatAnnotateCondVarSignalAll
,
127 StatAnnotateMutexIsNotPHB
,
128 StatAnnotateCondVarWait
,
129 StatAnnotateRWLockCreate
,
130 StatAnnotateRWLockCreateStatic
,
131 StatAnnotateRWLockDestroy
,
132 StatAnnotateRWLockAcquired
,
133 StatAnnotateRWLockReleased
,
134 StatAnnotateTraceMemory
,
135 StatAnnotateFlushState
,
136 StatAnnotateNewMemory
,
138 StatAnnotateFlushExpectedRaces
,
139 StatAnnotateEnableRaceDetection
,
140 StatAnnotateMutexIsUsedAsCondVar
,
143 StatAnnotatePCQDestroy
,
144 StatAnnotatePCQCreate
,
145 StatAnnotateExpectRace
,
146 StatAnnotateBenignRaceSized
,
147 StatAnnotateBenignRace
,
148 StatAnnotateIgnoreReadsBegin
,
149 StatAnnotateIgnoreReadsEnd
,
150 StatAnnotateIgnoreWritesBegin
,
151 StatAnnotateIgnoreWritesEnd
,
152 StatAnnotateIgnoreSyncBegin
,
153 StatAnnotateIgnoreSyncEnd
,
154 StatAnnotatePublishMemoryRange
,
155 StatAnnotateUnpublishMemoryRange
,
156 StatAnnotateThreadName
,
158 // Internal mutex contentionz.
170 StatMtxDeadlockDetector
,
173 // This must be the last.
177 } // namespace __tsan
179 #endif // TSAN_STAT_H