| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | TimeProfiler.cpp | 140 auto writeEvent = [&](const auto &E, uint64_t Tid) { in write() argument 146 J.attribute("tid", int64_t(Tid)); in write() 157 writeEvent(E, this->Tid); in write() 160 writeEvent(E, TTP->Tid); in write() 165 uint64_t MaxTid = this->Tid; in write() 167 MaxTid = std::max(MaxTid, TTP->Tid); in write() 216 auto writeMetadataEvent = [&](const char *Name, uint64_t Tid, in write() 221 J.attribute("tid", int64_t(Tid)); in write() 229 writeMetadataEvent("process_name", Tid, ProcName); in write() 230 writeMetadataEvent("thread_name", Tid, ThreadName); in write() [all …]
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/ |
| H A D | tsan_report.h | 77 Tid tid = kInvalidTid; 84 Tid id; 89 Tid parent_tid; 109 Vector<Tid> unique_tids;
|
| H A D | tsan_rtl_thread.cpp | 24 ThreadContext::ThreadContext(Tid tid) in ThreadContext() 119 Tid ThreadCreate(ThreadState *thr, uptr pc, uptr uid, bool detached) { in ThreadCreate() 122 Tid tid = ctx->thread_registry.CreateThread(uid, detached, parent_tid, &args); in ThreadCreate() 151 void ThreadStart(ThreadState *thr, Tid tid, tid_t os_id, in ThreadStart() 273 Tid ThreadConsumeTid(ThreadState *thr, uptr pc, uptr uid) { in ThreadConsumeTid() 277 void ThreadJoin(ThreadState *thr, uptr pc, Tid tid) { in ThreadJoin() 292 void ThreadDetach(ThreadState *thr, uptr pc, Tid tid) { in ThreadDetach() 303 void ThreadNotJoined(ThreadState *thr, uptr pc, Tid tid, uptr uid) { in ThreadNotJoined() 325 Tid tid = ThreadCreate(thr, pc, 0, true); in FiberCreate()
|
| H A D | tsan_rtl.h | 174 const Tid tid; 251 explicit ThreadContext(Tid tid); 355 void AddThread(Tid unique_tid, bool suppressable = false); 356 void AddUniqueTid(Tid unique_tid); 392 void RestoreStack(Tid tid, const u64 epoch, VarSizeStackTrace *stk, 533 void ThreadStart(ThreadState *thr, Tid tid, tid_t os_id, 536 Tid ThreadConsumeTid(ThreadState *thr, uptr pc, uptr uid); 537 void ThreadJoin(ThreadState *thr, uptr pc, Tid tid); 538 void ThreadDetach(ThreadState *thr, uptr pc, Tid tid); 543 void ThreadNotJoined(ThreadState *thr, uptr pc, Tid tid, uptr uid); [all …]
|
| H A D | tsan_rtl_report.cpp | 198 void ScopedReportBase::AddUniqueTid(Tid unique_tid) { in AddUniqueTid() 227 static ThreadContext *FindThreadByUidLocked(Tid unique_id) { in FindThreadByUidLocked() 234 static ThreadContext *FindThreadByTidLocked(Tid tid) { in FindThreadByTidLocked() 265 void ScopedReportBase::AddThread(Tid unique_tid, bool suppressable) { in AddThread() 321 Tid creat_tid = kInvalidTid; in AddLocation() 390 void RestoreStack(Tid tid, const u64 epoch, VarSizeStackTrace *stk, in RestoreStack() 535 bool RestoreStack(Tid tid, EventType type, Sid sid, Epoch epoch, uptr addr, in RestoreStack()
|
| H A D | tsan_platform_mac.cpp | 81 const_cast<Tid &>(dts->tid) = kInvalidTid; in InitializeThreadStateStorage() 234 Tid tid = ThreadCreate(parent_thread_state, 0, (uptr)thread, true); in my_pthread_introspection_hook()
|
| H A D | tsan_fd.h | 56 bool FdLocation(uptr addr, int *fd, Tid *tid, StackID *stack);
|
| H A D | tsan_rtl.cpp | 78 static ThreadContextBase *CreateThreadContext(Tid tid) { in CreateThreadContext() 126 ThreadState::ThreadState(Context *ctx, Tid tid, int unique_id, u64 epoch, in ThreadState() 448 Tid tid = ThreadCreate(thr, 0, 0, true); in Initialize() 701 Trace *ThreadTrace(Tid tid) { return (Trace *)GetThreadTraceHeader(tid); } in ThreadTrace()
|
| H A D | tsan_sync.h | 58 Tid owner_tid; // Set only by exclusive owners.
|
| H A D | tsan_fd.cpp | 29 Tid creation_tid; 143 bool FdLocation(uptr addr, int *fd, Tid *tid, StackID *stack) { in FdLocation()
|
| H A D | tsan_defs.h | 208 Tid tid;
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_report.h | 77 Tid tid = kInvalidTid; 84 Tid id; 89 Tid parent_tid; 108 Vector<Tid> unique_tids;
|
| H A D | tsan_rtl_thread.cpp | 24 ThreadContext::ThreadContext(Tid tid) : ThreadContextBase(tid), thr(), sync() {} in ThreadContext() 116 Tid ThreadCreate(ThreadState *thr, uptr pc, uptr uid, bool detached) { in ThreadCreate() 118 Tid parent = kInvalidTid; in ThreadCreate() 130 Tid tid = ctx->thread_registry.CreateThread(uid, detached, parent, &arg); in ThreadCreate() 152 void ThreadStart(ThreadState *thr, Tid tid, tid_t os_id, in ThreadStart() 284 Tid ThreadConsumeTid(ThreadState *thr, uptr pc, uptr uid) { in ThreadConsumeTid() 293 void ThreadJoin(ThreadState *thr, uptr pc, Tid tid) { in ThreadJoin() 316 void ThreadDetach(ThreadState *thr, uptr pc, Tid tid) { in ThreadDetach() 323 void ThreadNotJoined(ThreadState *thr, uptr pc, Tid tid, uptr uid) { in ThreadNotJoined() 344 Tid tid = ThreadCreate(thr, pc, 0, true); in FiberCreate()
|
| H A D | tsan_rtl.h | 134 Tid tid; 199 const Tid tid; 234 explicit ThreadState(Tid tid); 264 explicit ThreadContext(Tid tid); 411 void AddThread(Tid tid, bool suppressable = false); 412 void AddUniqueTid(Tid unique_tid); 556 void ThreadStart(ThreadState *thr, Tid tid, tid_t os_id, 559 Tid ThreadConsumeTid(ThreadState *thr, uptr pc, uptr uid); 560 void ThreadJoin(ThreadState *thr, uptr pc, Tid tid); 561 void ThreadDetach(ThreadState *thr, uptr pc, Tid tid); [all …]
|
| H A D | tsan_rtl_report.cpp | 178 Tid tid, StackTrace stack, in AddMemoryAccess() 202 void ScopedReportBase::AddUniqueTid(Tid unique_tid) { in AddUniqueTid() 226 static ThreadContext *FindThreadByTidLocked(Tid tid) { in FindThreadByTidLocked() 257 void ScopedReportBase::AddThread(Tid tid, bool suppressable) { in AddThread() 282 Tid creat_tid = kInvalidTid; in AddLocation() 434 AccessType typ, Tid *ptid, VarSizeStackTrace *pstk, in RestoreStack() 445 Tid tid = kInvalidTid; in RestoreStack() 755 Tid tids[kMop] = {thr->tid, kInvalidTid}; in ReportRace() 809 Tid parent_tid = rep_desc->threads[i]->parent_tid; in ReportRace()
|
| H A D | tsan_platform_mac.cpp | 81 const_cast<Tid &>(dts->tid) = kInvalidTid; in InitializeThreadStateStorage() 211 Tid tid = ThreadCreate(parent_thread_state, 0, (uptr)thread, true); in ThreadCreateCallback()
|
| H A D | tsan_fd.h | 57 bool FdLocation(uptr addr, int *fd, Tid *tid, StackID *stack);
|
| H A D | tsan_sync.h | 58 Tid owner_tid; // Set only by exclusive owners.
|
| H A D | tsan_defs.h | 187 Tid tid;
|
| H A D | tsan_fd.cpp | 35 Tid creation_tid; 158 bool FdLocation(uptr addr, int *fd, Tid *tid, StackID *stack) { in FdLocation()
|
| /llvm-project-15.0.7/compiler-rt/lib/safestack/ |
| H A D | safestack_platform.h | 73 long Tid; in GetTid() 74 thr_self(&Tid); in GetTid() 75 return Tid; in GetTid()
|
| /llvm-project-15.0.7/compiler-rt/lib/tsan/tests/unit/ |
| H A D | tsan_trace_test.cpp | 40 Tid tid = ThreadCreate(cur_thread(), 0, 0, true); in ThreadArray() 92 Tid tid = kInvalidTid; in TRACE_TEST() 152 Tid tid = kInvalidTid; in TRACE_TEST() 180 Tid tid = kInvalidTid; in TRACE_TEST() 223 Tid tid = kInvalidTid; in TRACE_TEST()
|
| /llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/ |
| H A D | sanitizer_internal_defs.h | 433 typedef u32 Tid; typedef 434 constexpr Tid kInvalidTid = -1; 435 constexpr Tid kMainTid = 0;
|
| H A D | sanitizer_thread_registry.h | 158 DenseMap<uptr, Tid> live_;
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/PerfJITEvents/ |
| H A D | PerfJITEventListener.cpp | 140 uint32_t Tid; member 423 rec.Tid = get_threadid(); in NotifyCode()
|