Lines Matching defs:ThreadState

240 struct ThreadState {
249 // QUESTION: can we can squeeze this into ThreadState::Fast?
250 // E.g. ThreadState::Fast is a 44-bit, 32 are taken by synch_epoch and 12 are
298 explicit ThreadState(Context *ctx, int tid, int unique_id, u64 epoch,
307 INLINE ThreadState *cur_thread() {
308 return reinterpret_cast<ThreadState *>(&cur_thread_placeholder);
329 ThreadState *thr;
398 ThreadState*thr_;
429 void ALWAYS_INLINE INLINE StatInc(ThreadState *thr, StatType typ, u64 n = 1) {
438 void ReportRace(ThreadState *thr);
455 u32 CurrentStackId(ThreadState *thr, uptr pc);
456 void PrintCurrentStack(ThreadState *thr, uptr pc);
458 void Initialize(ThreadState *thr);
459 int Finalize(ThreadState *thr);
461 void MemoryAccess(ThreadState *thr, uptr pc, uptr addr,
463 void MemoryAccessImpl(ThreadState *thr, uptr addr,
466 void MemoryRead1Byte(ThreadState *thr, uptr pc, uptr addr);
467 void MemoryWrite1Byte(ThreadState *thr, uptr pc, uptr addr);
468 void MemoryRead8Byte(ThreadState *thr, uptr pc, uptr addr);
469 void MemoryWrite8Byte(ThreadState *thr, uptr pc, uptr addr);
470 void MemoryAccessRange(ThreadState *thr, uptr pc, uptr addr,
472 void MemoryResetRange(ThreadState *thr, uptr pc, uptr addr, uptr size);
473 void MemoryRangeFreed(ThreadState *thr, uptr pc, uptr addr, uptr size);
474 void MemoryRangeImitateWrite(ThreadState *thr, uptr pc, uptr addr, uptr size);
475 void IgnoreCtl(ThreadState *thr, bool write, bool begin);
477 void FuncEntry(ThreadState *thr, uptr pc);
478 void FuncExit(ThreadState *thr);
480 int ThreadCreate(ThreadState *thr, uptr pc, uptr uid, bool detached);
481 void ThreadStart(ThreadState *thr, int tid);
482 void ThreadFinish(ThreadState *thr);
483 int ThreadTid(ThreadState *thr, uptr pc, uptr uid);
484 void ThreadJoin(ThreadState *thr, uptr pc, int tid);
485 void ThreadDetach(ThreadState *thr, uptr pc, int tid);
486 void ThreadFinalize(ThreadState *thr);
487 void ThreadFinalizerGoroutine(ThreadState *thr);
489 void MutexCreate(ThreadState *thr, uptr pc, uptr addr,
491 void MutexDestroy(ThreadState *thr, uptr pc, uptr addr);
492 void MutexLock(ThreadState *thr, uptr pc, uptr addr);
493 void MutexUnlock(ThreadState *thr, uptr pc, uptr addr);
494 void MutexReadLock(ThreadState *thr, uptr pc, uptr addr);
495 void MutexReadUnlock(ThreadState *thr, uptr pc, uptr addr);
496 void MutexReadOrWriteUnlock(ThreadState *thr, uptr pc, uptr addr);
498 void Acquire(ThreadState *thr, uptr pc, uptr addr);
499 void Release(ThreadState *thr, uptr pc, uptr addr);
500 void ReleaseStore(ThreadState *thr, uptr pc, uptr addr);
501 void AfterSleep(ThreadState *thr, uptr pc);
523 void TraceSwitch(ThreadState *thr);
526 void ALWAYS_INLINE INLINE TraceAddEvent(ThreadState *thr, u64 epoch,