Lines Matching refs:thr

424   ThreadState *thr;  variable
549 void ObtainCurrentStack(ThreadState *thr, uptr toppc, StackTraceTy *stack) { in ObtainCurrentStack() argument
550 uptr size = thr->shadow_stack_pos - thr->shadow_stack; in ObtainCurrentStack()
556 stack->Init(&thr->shadow_stack[start], size, toppc); in ObtainCurrentStack()
565 void ALWAYS_INLINE StatInc(ThreadState *thr, StatType typ, u64 n = 1) {
567 thr->stat[typ] += n;
570 void ALWAYS_INLINE StatSet(ThreadState *thr, StatType typ, u64 n) { in StatSet() argument
572 thr->stat[typ] = n; in StatSet()
584 void ForkBefore(ThreadState *thr, uptr pc);
585 void ForkParentAfter(ThreadState *thr, uptr pc);
586 void ForkChildAfter(ThreadState *thr, uptr pc);
588 void ReportRace(ThreadState *thr);
589 bool OutputReport(ThreadState *thr, const ScopedReport &srep);
607 u32 CurrentStackId(ThreadState *thr, uptr pc);
609 void PrintCurrentStack(ThreadState *thr, uptr pc);
612 void Initialize(ThreadState *thr);
613 int Finalize(ThreadState *thr);
615 void OnUserAlloc(ThreadState *thr, uptr pc, uptr p, uptr sz, bool write);
616 void OnUserFree(ThreadState *thr, uptr pc, uptr p, bool write);
618 void MemoryAccess(ThreadState *thr, uptr pc, uptr addr,
620 void MemoryAccessImpl(ThreadState *thr, uptr addr,
623 void MemoryAccessRange(ThreadState *thr, uptr pc, uptr addr,
625 void MemoryAccessRangeStep(ThreadState *thr, uptr pc, uptr addr,
627 void UnalignedMemoryAccess(ThreadState *thr, uptr pc, uptr addr,
635 void ALWAYS_INLINE MemoryRead(ThreadState *thr, uptr pc, in MemoryRead() argument
637 MemoryAccess(thr, pc, addr, kAccessSizeLog, false, false); in MemoryRead()
640 void ALWAYS_INLINE MemoryWrite(ThreadState *thr, uptr pc, in MemoryWrite() argument
642 MemoryAccess(thr, pc, addr, kAccessSizeLog, true, false); in MemoryWrite()
645 void ALWAYS_INLINE MemoryReadAtomic(ThreadState *thr, uptr pc, in MemoryReadAtomic() argument
647 MemoryAccess(thr, pc, addr, kAccessSizeLog, false, true); in MemoryReadAtomic()
650 void ALWAYS_INLINE MemoryWriteAtomic(ThreadState *thr, uptr pc, in MemoryWriteAtomic() argument
652 MemoryAccess(thr, pc, addr, kAccessSizeLog, true, true); in MemoryWriteAtomic()
655 void MemoryResetRange(ThreadState *thr, uptr pc, uptr addr, uptr size);
656 void MemoryRangeFreed(ThreadState *thr, uptr pc, uptr addr, uptr size);
657 void MemoryRangeImitateWrite(ThreadState *thr, uptr pc, uptr addr, uptr size);
659 void ThreadIgnoreBegin(ThreadState *thr, uptr pc);
660 void ThreadIgnoreEnd(ThreadState *thr, uptr pc);
661 void ThreadIgnoreSyncBegin(ThreadState *thr, uptr pc);
662 void ThreadIgnoreSyncEnd(ThreadState *thr, uptr pc);
664 void FuncEntry(ThreadState *thr, uptr pc);
665 void FuncExit(ThreadState *thr);
667 int ThreadCreate(ThreadState *thr, uptr pc, uptr uid, bool detached);
668 void ThreadStart(ThreadState *thr, int tid, uptr os_id);
669 void ThreadFinish(ThreadState *thr);
670 int ThreadTid(ThreadState *thr, uptr pc, uptr uid);
671 void ThreadJoin(ThreadState *thr, uptr pc, int tid);
672 void ThreadDetach(ThreadState *thr, uptr pc, int tid);
673 void ThreadFinalize(ThreadState *thr);
674 void ThreadSetName(ThreadState *thr, const char *name);
675 int ThreadCount(ThreadState *thr);
676 void ProcessPendingSignals(ThreadState *thr);
678 void MutexCreate(ThreadState *thr, uptr pc, uptr addr,
680 void MutexDestroy(ThreadState *thr, uptr pc, uptr addr);
681 void MutexLock(ThreadState *thr, uptr pc, uptr addr, int rec = 1,
683 int MutexUnlock(ThreadState *thr, uptr pc, uptr addr, bool all = false);
684 void MutexReadLock(ThreadState *thr, uptr pc, uptr addr, bool try_lock = false);
685 void MutexReadUnlock(ThreadState *thr, uptr pc, uptr addr);
686 void MutexReadOrWriteUnlock(ThreadState *thr, uptr pc, uptr addr);
687 void MutexRepair(ThreadState *thr, uptr pc, uptr addr); // call on EOWNERDEAD
689 void Acquire(ThreadState *thr, uptr pc, uptr addr);
696 void AcquireGlobal(ThreadState *thr, uptr pc);
697 void Release(ThreadState *thr, uptr pc, uptr addr);
698 void ReleaseStore(ThreadState *thr, uptr pc, uptr addr);
699 void AfterSleep(ThreadState *thr, uptr pc);
700 void AcquireImpl(ThreadState *thr, uptr pc, SyncClock *c);
701 void ReleaseImpl(ThreadState *thr, uptr pc, SyncClock *c);
702 void ReleaseStoreImpl(ThreadState *thr, uptr pc, SyncClock *c);
703 void AcquireReleaseImpl(ThreadState *thr, uptr pc, SyncClock *c);
726 void TraceSwitch(ThreadState *thr);
727 uptr TraceTopPC(ThreadState *thr);
733 void ALWAYS_INLINE TraceAddEvent(ThreadState *thr, FastState fs, in TraceAddEvent() argument
740 StatInc(thr, StatEvents); in TraceAddEvent()
746 TraceSwitch(thr); in TraceAddEvent()