Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/compiler-rt/lib/asan/
H A Dasan_thread.cc78 AsanThread *AsanThread::Create(thread_callback_t start_routine, void *arg, in Create()
83 AsanThread *thread = (AsanThread*)MmapOrDie(size, __func__); in Create()
100 void AsanThread::Destroy() { in Destroy()
163 inline AsanThread::StackBounds AsanThread::GetStackBounds() const { in GetStackBounds()
179 uptr AsanThread::stack_top() { in stack_top()
183 uptr AsanThread::stack_bottom() { in stack_bottom()
187 uptr AsanThread::stack_size() { in stack_size()
277 AsanThread *CreateMainThread() { in CreateMainThread()
278 AsanThread *main_thread = AsanThread::Create( in CreateMainThread()
396 AsanThread *t = tctx->thread; in ThreadStackContainsAddress()
[all …]
H A Dasan_rtems.cc95 struct AsanThread::InitOptions {
100 static AsanThread *CreateAsanThread(StackTrace *stack, u32 parent_tid, in CreateAsanThread()
105 AsanThread *thread = (AsanThread *)MmapOrDie(sizeof(AsanThread), __func__); in CreateAsanThread()
112 const AsanThread::InitOptions options = {stack_bottom, stack_size, in CreateAsanThread()
121 void AsanThread::SetThreadStackAndTls(const AsanThread::InitOptions *options) { in SetThreadStackAndTls()
136 AsanThread *CreateMainThread() { in CreateMainThread()
159 AsanThread *thread = static_cast<AsanThread *>(hook); in ThreadCreateHook()
167 UnmapOrDie(thread, sizeof(AsanThread)); in ThreadCreateHook()
178 AsanThread *thread = static_cast<AsanThread *>(hook); in ThreadStartHook()
201 AsanThread *thread = static_cast<AsanThread *>(hook); in ThreadExitHook()
[all …]
H A Dasan_fuchsia.cc83 return RoundUpTo(sizeof(AsanThread), PAGE_SIZE); in AsanThreadMmapSize()
86 struct AsanThread::InitOptions {
91 static AsanThread *CreateAsanThread(StackTrace *stack, u32 parent_tid, in CreateAsanThread()
96 AsanThread *thread = (AsanThread *)MmapOrDie(AsanThreadMmapSize(), __func__); in CreateAsanThread()
106 const AsanThread::InitOptions options = {stack_bottom, stack_size}; in CreateAsanThread()
117 void AsanThread::SetThreadStackAndTls(const AsanThread::InitOptions *options) { in SetThreadStackAndTls()
127 AsanThread *CreateMainThread() { in CreateMainThread()
132 AsanThread *t = CreateAsanThread( in CreateMainThread()
162 AsanThread *thread = static_cast<AsanThread *>(hook); in ThreadCreateHook()
178 AsanThread *thread = static_cast<AsanThread *>(hook); in ThreadStartHook()
[all …]
H A Dasan_thread.h35 class AsanThread; variable
48 AsanThread *thread;
54 AsanThread *thread;
63 class AsanThread {
65 static AsanThread *Create(thread_callback_t start_routine, void *arg,
174 explicit ScopedUnwinding(AsanThread *t) : thread(t) { in ScopedUnwinding()
180 AsanThread *thread;
190 AsanThread *GetCurrentThread();
191 void SetCurrentThread(AsanThread *t);
193 AsanThread *FindThreadByStackAddress(uptr addr);
H A Dasan_win.cc134 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()
216 AsanThread::TSDDtor(tsd); in PlatformTSDDtor()
H A Dasan_posix.cc85 AsanThread::TSDDtor(tsd); in PlatformTSDDtor()
113 AsanThread::TSDDtor(tsd); in PlatformTSDDtor()
H A Dasan_internal.h60 class AsanThread; variable
88 AsanThread *CreateMainThread();
H A Dasan_interceptors.cc66 AsanThread *t = GetCurrentThread(); in SetThreadName()
143 if (AsanThread *t = GetCurrentThread()) { \
196 AsanThread *t = nullptr; in asan_thread_start()
197 while ((t = reinterpret_cast<AsanThread *>( in asan_thread_start()
230 AsanThread *t = in INTERCEPTOR()
231 AsanThread::Create(start_routine, arg, current_tid, &stack, detached); in INTERCEPTOR()
H A Dasan_stats.cc78 if (AsanThread *t = tctx->thread) in MergeThreadStats()
118 AsanThread *t = GetCurrentThread(); in GetCurrentThreadStats()
H A Dasan_mac.cc180 AsanThread *t = GetCurrentThread(); in asan_register_worker_thread()
182 t = AsanThread::Create(/* start_routine */ nullptr, /* arg */ nullptr, in asan_register_worker_thread()
H A Dasan_stack.h39 AsanThread *t; in GetStackTrace()
H A Dasan_rtl.cc497 AsanThread *main_thread = CreateMainThread(); in AsanInitInternal()
565 AsanThread *curr_thread = GetCurrentThread(); in __asan_handle_no_return()
H A Dasan_descriptions.h26 static inline void DescribeThread(AsanThread *t) { in DescribeThread()
H A Dasan_descriptions.cc197 AsanThread *t = FindThreadByStackAddress(addr); in GetStackAddressInformation()
203 AsanThread::StackFrameAccess access; in GetStackAddressInformation()
H A Dasan_allocator.cc449 AsanThread *t = GetCurrentThread(); in Allocate()
572 AsanThread *t = GetCurrentThread(); in QuarantineChunk()
760 AsanThread *t = GetCurrentThread(); in Purge()
H A Dasan_fake_stack.cc189 AsanThread *t = GetCurrentThread(); in GetFakeStack()
H A Dasan_report.cc374 AsanThread *t = GetCurrentThread(); in IsInvalidPointerPair()