Lines Matching refs:tctx

206 void ScopedReportBase::AddThread(const ThreadContext *tctx, bool suppressable) {  in AddThread()  argument
208 if ((u32)rep_->threads[i]->id == tctx->tid) in AddThread()
213 rt->id = tctx->tid; in AddThread()
214 rt->os_id = tctx->os_id; in AddThread()
215 rt->running = (tctx->status == ThreadStatusRunning); in AddThread()
216 rt->name = internal_strdup(tctx->name); in AddThread()
217 rt->parent_tid = tctx->parent_tid; in AddThread()
218 rt->thread_type = tctx->thread_type; in AddThread()
220 rt->stack = SymbolizeStackId(tctx->creation_stack_id); in AddThread()
234 ThreadContext *tctx = static_cast<ThreadContext*>(tctx_base); in IsInStackOrTls() local
235 if (tctx->status != ThreadStatusRunning) in IsInStackOrTls()
237 ThreadState *thr = tctx->thr; in IsInStackOrTls()
245 ThreadContext *tctx = in IsThreadStackOrTls() local
248 if (!tctx) in IsThreadStackOrTls()
250 ThreadState *thr = tctx->thr; in IsThreadStackOrTls()
253 return tctx; in IsThreadStackOrTls()
259 if (const ThreadContext *tctx = FindThreadByTidLocked(tid)) in AddThread() local
260 AddThread(tctx, suppressable); in AddThread()
319 if (ThreadContext *tctx = IsThreadStackOrTls(addr, &is_stack)) { in AddLocation() local
322 loc->tid = tctx->tid; in AddLocation()
324 AddThread(tctx); in AddLocation()
458 ThreadContext *tctx = in RestoreStack() local
460 Trace *trace = &tctx->trace; in RestoreStack()
474 if (tctx->thr) in RestoreStack()
475 last_pos = (Event *)atomic_load_relaxed(&tctx->thr->trace_pos); in RestoreStack()
798 ThreadContext *tctx = static_cast<ThreadContext *>( in ReportRace() local
800 rep.AddThread(tctx); in ReportRace()