Lines Matching refs:thr

329   ThreadState *thr;
429 void ALWAYS_INLINE INLINE StatInc(ThreadState *thr, StatType typ, u64 n = 1) {
431 thr->stat[typ] += n;
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,
528 StatInc(thr, StatEvents);
533 TraceSwitch(thr);
536 Event *evp = &thr->trace.events[epoch % kTraceSize];