Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_thread.cpp28 thread = static_cast<MemprofThread *>(arg); in OnCreated()
71 MemprofThread *MemprofThread::Create(thread_callback_t start_routine, void *arg, in Create()
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 TSDDtor()
92 void MemprofThread::Destroy() { in Destroy()
99 uptr size = RoundUpTo(sizeof(MemprofThread), GetPageSizeCached()); in Destroy()
104 inline MemprofThread::StackBounds MemprofThread::GetStackBounds() const { in GetStackBounds()
110 uptr MemprofThread::stack_top() { return GetStackBounds().top; } in stack_top()
112 uptr MemprofThread::stack_bottom() { return GetStackBounds().bottom; } in stack_bottom()
[all …]
H A Dmemprof_thread.h30 class MemprofThread; variable
41 MemprofThread *thread;
51 class MemprofThread {
53 static MemprofThread *Create(thread_callback_t start_routine, void *arg,
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()
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.cpp447 MemprofThread *t = GetCurrentThread(); in Allocate()
535 MemprofThread *t = GetCurrentThread(); in Deallocate()