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