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.cpp74 MemprofThread *MemprofThread::Create(thread_callback_t start_routine, void *arg, in Create()
78 uptr size = RoundUpTo(sizeof(MemprofThread), PageSize); in Create()
79 MemprofThread *thread = (MemprofThread *)MmapOrDie(size, __func__); in Create()
88 void MemprofThread::TSDDtor(void *tsd) { in TSDDtor()
95 void MemprofThread::Destroy() { in Destroy()
102 uptr size = RoundUpTo(sizeof(MemprofThread), GetPageSizeCached()); in Destroy()
107 inline MemprofThread::StackBounds MemprofThread::GetStackBounds() const { in GetStackBounds()
113 uptr MemprofThread::stack_top() { return GetStackBounds().top; } in stack_top()
115 uptr MemprofThread::stack_bottom() { return GetStackBounds().bottom; } in stack_bottom()
117 uptr MemprofThread::stack_size() { in stack_size()
[all …]
H A Dmemprof_thread.h30 class MemprofThread; variable
42 MemprofThread *thread;
48 MemprofThread *thread;
57 class MemprofThread {
59 static MemprofThread *Create(thread_callback_t start_routine, void *arg,
127 MemprofThread *GetCurrentThread();
128 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.cpp220 MemprofThread *main_thread = CreateMainThread(); in MemprofInitInternal()
H A Dmemprof_allocator.cpp447 MemprofThread *t = GetCurrentThread(); in Allocate()
535 MemprofThread *t = GetCurrentThread(); in Deallocate()