Lines Matching refs:tctx
202 void ScopedReportBase::AddThread(const ThreadContext *tctx, bool suppressable) { in AddThread() argument
204 if ((u32)rep_->threads[i]->id == tctx->tid) in AddThread()
209 rt->id = tctx->tid; in AddThread()
210 rt->os_id = tctx->os_id; in AddThread()
211 rt->running = (tctx->status == ThreadStatusRunning); in AddThread()
212 rt->name = internal_strdup(tctx->name); in AddThread()
213 rt->parent_tid = tctx->parent_tid; in AddThread()
214 rt->thread_type = tctx->thread_type; in AddThread()
216 rt->stack = SymbolizeStackId(tctx->creation_stack_id); in AddThread()
222 static bool FindThreadByUidLockedCallback(ThreadContextBase *tctx, void *arg) { in FindThreadByUidLockedCallback() argument
224 return tctx->unique_id == (u32)unique_id; in FindThreadByUidLockedCallback()
242 ThreadContext *tctx = static_cast<ThreadContext*>(tctx_base); in IsInStackOrTls() local
243 if (tctx->status != ThreadStatusRunning) in IsInStackOrTls()
245 ThreadState *thr = tctx->thr; in IsInStackOrTls()
253 ThreadContext *tctx = in IsThreadStackOrTls() local
256 if (!tctx) in IsThreadStackOrTls()
258 ThreadState *thr = tctx->thr; in IsThreadStackOrTls()
261 return tctx; in IsThreadStackOrTls()
267 if (const ThreadContext *tctx = FindThreadByUidLocked(unique_tid)) in AddThread() local
268 AddThread(tctx, suppressable); in AddThread()
330 ThreadContext *tctx = FindThreadByUidLocked(creat_tid); in AddLocation() local
331 if (tctx) in AddLocation()
332 AddThread(tctx); in AddLocation()
346 ThreadContext *tctx = FindThreadByTidLocked(b->tid); in AddLocation() local
352 loc->tid = tctx ? tctx->tid : b->tid; in AddLocation()
355 if (tctx) in AddLocation()
356 AddThread(tctx); in AddLocation()
360 if (ThreadContext *tctx = IsThreadStackOrTls(addr, &is_stack)) { in AddLocation() local
363 loc->tid = tctx->tid; in AddLocation()
365 AddThread(tctx); in AddLocation()
546 ThreadContext *tctx = in RestoreStack() local
548 Trace *trace = &tctx->trace; in RestoreStack()
560 if (tctx->thr) in RestoreStack()
561 last_pos = (Event *)atomic_load_relaxed(&tctx->thr->trace_pos); in RestoreStack()
927 ThreadContext *tctx = static_cast<ThreadContext *>( in ReportRace() local
929 if (s.epoch() < tctx->epoch0 || s.epoch() > tctx->epoch1) in ReportRace()
931 rep.AddThread(tctx); in ReportRace()