Home
last modified time | relevance | path

Searched refs:MemprofThread (Results 1 – 10 of 10) sorted by relevance

/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_thread.cpp28 thread = static_cast<MemprofThread *>(arg); in OnCreated()
33 // Drop the link to the MemprofThread object. in OnCreated()
69 // MemprofThread implementation. in GetThreadContextByTidLocked()
71 MemprofThread *MemprofThread::Create(thread_callback_t start_routine, void *arg,
75 uptr size = RoundUpTo(sizeof(MemprofThread), PageSize); in Create()
76 MemprofThread *thread = (MemprofThread *)MmapOrDie(size, __func__); in Create()
85 void MemprofThread::TSDDtor(void *tsd) { in Create()
92 void MemprofThread in TSDDtor()
[all...]
H A Dmemprof_thread.h30 class MemprofThread; variable
41 MemprofThread *thread;
50 // MemprofThread are stored in TSD and destroyed when the thread dies.
51 class MemprofThread {
53 static MemprofThread *Create(thread_callback_t start_routine, void *arg,
87 // NOTE: There is no MemprofThread constructor. It is allocated in setUnwinding()
121 MemprofThread *GetCurrentThread();
122 void SetCurrentThread(MemprofThread *t);
H A Dmemprof_interceptors.cpp37 MemprofThread *t = GetCurrentThread(); in SetThreadName()
96 if (MemprofThread *t = GetCurrentThread()) { \
126 MemprofThread *t = nullptr; in memprof_thread_start()
127 while ((t = reinterpret_cast<MemprofThread *>( in memprof_thread_start()
154 MemprofThread *t = MemprofThread::Create(start_routine, arg, current_tid, in INTERCEPTOR()
157 // Wait until the MemprofThread object is initialized and the in INTERCEPTOR()
H A Dmemprof_internal.h44 class MemprofThread; variable
62 MemprofThread *CreateMainThread();
H A Dmemprof_stats.cpp77 if (MemprofThread *t = tctx->thread) in MergeThreadStats()
108 MemprofThread *t = GetCurrentThread(); in GetCurrentThreadStats()
H A Dmemprof_descriptions.h24 inline void DescribeThread(MemprofThread *t) { in DescribeThread()
H A Dmemprof_posix.cpp53 MemprofThread::TSDDtor(tsd); in PlatformTSDDtor()
H A Dmemprof_stack.cpp40 MemprofThread *t = GetCurrentThread(); in UnwindImpl()
H A Dmemprof_rtl.cpp219 MemprofThread *main_thread = CreateMainThread(); in MemprofInitInternal()
H A Dmemprof_allocator.cpp448 MemprofThread *t = GetCurrentThread(); in Allocate()
536 MemprofThread *t = GetCurrentThread(); in Deallocate()