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.
33 StatShadowNonZero
, // Derived.
36 StatShadowNotIntersect
,
38 StatShadowAnotherThread
,
73 StatClockAcquireEmpty
,
74 StatClockAcquireFastRelease
,
75 StatClockAcquireLarge
,
76 StatClockAcquireRepeat
,
78 StatClockAcquiredSomething
,
81 StatClockReleaseResize
,
82 StatClockReleaseFast1
,
83 StatClockReleaseFast2
,
86 StatClockReleaseAcquired
,
87 StatClockReleaseClearTail
,
88 // Clocks - release store.
94 // Clocks - acquire-release.
95 StatClockAcquireRelease
,
122 // Dynamic annotations.
124 StatAnnotateHappensBefore
,
125 StatAnnotateHappensAfter
,
126 StatAnnotateCondVarSignal
,
127 StatAnnotateCondVarSignalAll
,
128 StatAnnotateMutexIsNotPHB
,
129 StatAnnotateCondVarWait
,
130 StatAnnotateRWLockCreate
,
131 StatAnnotateRWLockCreateStatic
,
132 StatAnnotateRWLockDestroy
,
133 StatAnnotateRWLockAcquired
,
134 StatAnnotateRWLockReleased
,
135 StatAnnotateTraceMemory
,
136 StatAnnotateFlushState
,
137 StatAnnotateNewMemory
,
139 StatAnnotateFlushExpectedRaces
,
140 StatAnnotateEnableRaceDetection
,
141 StatAnnotateMutexIsUsedAsCondVar
,
144 StatAnnotatePCQDestroy
,
145 StatAnnotatePCQCreate
,
146 StatAnnotateExpectRace
,
147 StatAnnotateBenignRaceSized
,
148 StatAnnotateBenignRace
,
149 StatAnnotateIgnoreReadsBegin
,
150 StatAnnotateIgnoreReadsEnd
,
151 StatAnnotateIgnoreWritesBegin
,
152 StatAnnotateIgnoreWritesEnd
,
153 StatAnnotateIgnoreSyncBegin
,
154 StatAnnotateIgnoreSyncEnd
,
155 StatAnnotatePublishMemoryRange
,
156 StatAnnotateUnpublishMemoryRange
,
157 StatAnnotateThreadName
,
159 // Internal mutex contentionz.
170 StatMtxDeadlockDetector
,
175 // This must be the last.
179 } // namespace __tsan
181 #endif // TSAN_STAT_H