Home
last modified time | relevance | path

Searched refs:AsanThread (Results 1 – 16 of 16) sorted by relevance

/llvm-project-15.0.7/compiler-rt/lib/asan/
H A Dasan_thread.cpp77 AsanThread *AsanThread::Create(thread_callback_t start_routine, void *arg, in Create()
82 AsanThread *thread = (AsanThread*)MmapOrDie(size, __func__); in Create()
98 void AsanThread::Destroy() { in Destroy()
170 inline AsanThread::StackBounds AsanThread::GetStackBounds() const { in GetStackBounds()
186 uptr AsanThread::stack_top() { in stack_top()
190 uptr AsanThread::stack_bottom() { in stack_bottom()
194 uptr AsanThread::stack_size() { in stack_size()
290 AsanThread *CreateMainThread() { in CreateMainThread()
291 AsanThread *main_thread = AsanThread::Create( in CreateMainThread()
409 AsanThread *t = tctx->thread; in ThreadStackContainsAddress()
[all …]
H A Dasan_fuchsia.cpp71 AsanThread *curr_thread = GetCurrentThread(); in PlatformUnpoisonStacks()
113 return RoundUpTo(sizeof(AsanThread), _zx_system_get_page_size()); in AsanThreadMmapSize()
116 struct AsanThread::InitOptions {
121 static AsanThread *CreateAsanThread(StackTrace *stack, u32 parent_tid, in CreateAsanThread()
124 AsanThread *thread = (AsanThread *)MmapOrDie(AsanThreadMmapSize(), __func__); in CreateAsanThread()
138 void AsanThread::SetThreadStackAndTls(const AsanThread::InitOptions *options) { in SetThreadStackAndTls()
148 AsanThread *CreateMainThread() { in CreateMainThread()
153 AsanThread *t = CreateAsanThread( in CreateMainThread()
197 AsanThread *thread = static_cast<AsanThread *>(hook); in ThreadCreateHook()
213 AsanThread *thread = static_cast<AsanThread *>(hook); in ThreadStartHook()
[all …]
H A Dasan_thread.h31 class AsanThread; variable
44 AsanThread *thread;
50 AsanThread *thread;
59 class AsanThread {
61 static AsanThread *Create(thread_callback_t start_routine, void *arg,
179 AsanThread *GetCurrentThread();
180 void SetCurrentThread(AsanThread *t);
182 AsanThread *FindThreadByStackAddress(uptr addr);
H A Dasan_stack.cpp34 explicit ScopedUnwinding(AsanThread *t) : thread(t) { in ScopedUnwinding()
48 AsanThread *thread = nullptr;
63 AsanThread *t = GetCurrentThread(); in UnwindImpl()
H A Dasan_win.cpp135 AsanThread *t = (AsanThread *)arg; in asan_thread_start()
151 AsanThread *t = in INTERCEPTOR_WINAPI()
152 AsanThread::Create(start_routine, arg, current_tid, &stack, detached); in INTERCEPTOR_WINAPI()
246 void PlatformTSDDtor(void *tsd) { AsanThread::TSDDtor(tsd); } in PlatformTSDDtor()
H A Dasan_internal.h59 class AsanThread; variable
97 AsanThread *CreateMainThread();
H A Dasan_posix.cpp113 AsanThread::TSDDtor(tsd); in PlatformTSDDtor()
141 AsanThread::TSDDtor(tsd); in PlatformTSDDtor()
H A Dasan_rtl.cpp471 AsanThread *main_thread = CreateMainThread(); in AsanInitInternal()
544 if (AsanThread *curr_thread = GetCurrentThread()) { in UnpoisonDefaultStack()
562 AsanThread *curr_thread = GetCurrentThread(); in UnpoisonFakeStack()
587 AsanThread *t = GetCurrentThread(); in __asan_extra_spill_area()
593 AsanThread *t = GetCurrentThread(); in __asan_handle_vfork()
H A Dasan_interceptors.cpp65 AsanThread *t = GetCurrentThread(); in SetThreadName()
145 if (AsanThread *t = GetCurrentThread()) { \
197 AsanThread *t = (AsanThread *)arg;
214 AsanThread *t = in INTERCEPTOR()
215 AsanThread::Create(start_routine, arg, current_tid, &stack, detached); in INTERCEPTOR()
H A Dasan_stats.cpp77 if (AsanThread *t = tctx->thread) in MergeThreadStats()
117 AsanThread *t = GetCurrentThread(); in GetCurrentThreadStats()
H A Dasan_mac.cpp149 AsanThread *t = GetCurrentThread(); in asan_register_worker_thread()
151 t = AsanThread::Create(/* start_routine */ nullptr, /* arg */ nullptr, in asan_register_worker_thread()
H A Dasan_allocator.cpp467 AsanThread *t = GetCurrentThread(); in UpdateAllocationStack()
522 AsanThread *t = GetCurrentThread(); in Allocate()
628 AsanThread *t = GetCurrentThread(); in QuarantineChunk()
821 AsanThread *t = GetCurrentThread(); in Purge()
1166 __asan::AsanThread *asan_thread = atctx->thread; in GetAdditionalThreadContextPtrs()
H A Dasan_descriptions.h25 static inline void DescribeThread(AsanThread *t) { in DescribeThread()
H A Dasan_descriptions.cpp195 AsanThread *t = FindThreadByStackAddress(addr); in GetStackAddressInformation()
201 AsanThread::StackFrameAccess access; in GetStackAddressInformation()
H A Dasan_fake_stack.cpp187 AsanThread *t = GetCurrentThread(); in GetFakeStack()
H A Dasan_report.cpp386 AsanThread *t = GetCurrentThread(); in IsInvalidPointerPair()