Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_thread.cpp32 thread = static_cast<AsanThread *>(arg); in OnCreated()
96 AsanThread *AsanThread::Create(const void *start_data, uptr data_size, in Create()
100 uptr size = RoundUpTo(sizeof(AsanThread), PageSize); in Create()
101 AsanThread *thread = (AsanThread *)MmapOrDie(size, __func__); in Create()
113 void AsanThread::GetStartData(void *out, uptr out_size) const { in GetStartData()
117 void AsanThread::TSDDtor(void *tsd) { in TSDDtor()
124 void AsanThread::Destroy() { in Destroy()
131 if (AsanThread *thread = GetCurrentThread()) in Destroy()
145 uptr size = RoundUpTo(sizeof(AsanThread), GetPageSizeCached()); in Destroy()
151 void AsanThread::StartSwitchFiber(FakeStack **fake_stack_save, uptr bottom, in StartSwitchFiber()
[all …]
H A Dasan_fuchsia.cpp74 AsanThread *curr_thread = GetCurrentThread(); in PlatformUnpoisonStacks()
116 return RoundUpTo(sizeof(AsanThread), _zx_system_get_page_size()); in AsanThreadMmapSize()
119 struct AsanThread::InitOptions {
124 static AsanThread *CreateAsanThread(StackTrace *stack, u32 parent_tid, in CreateAsanThread()
127 AsanThread *thread = (AsanThread *)MmapOrDie(AsanThreadMmapSize(), __func__); in CreateAsanThread()
140 void AsanThread::SetThreadStackAndTls(const AsanThread::InitOptions *options) { in SetThreadStackAndTls()
150 AsanThread *CreateMainThread() { in CreateMainThread()
155 AsanThread *t = CreateAsanThread( in CreateMainThread()
166 const AsanThread::InitOptions options = {__sanitizer::MainThreadStackBase, in CreateMainThread()
186 AsanThread *thread = CreateAsanThread(&stack, parent_tid, detached, name); in BeforeThreadCreateHook()
[all …]
H A Dasan_thread.h32 class AsanThread; variable
45 AsanThread *thread;
62 class AsanThread {
65 static AsanThread *Create(const T &data, u32 parent_tid, StackTrace *stack, in Create()
69 static AsanThread *Create(u32 parent_tid, StackTrace *stack, bool detached) { in Create()
151 static AsanThread *Create(const void *start_data, uptr data_size,
202 AsanThread *GetCurrentThread();
203 void SetCurrentThread(AsanThread *t);
205 AsanThread *FindThreadByStackAddress(uptr addr);
H A Dasan_win.cpp140 AsanThread *t = (AsanThread *)arg; in asan_thread_start()
163 AsanThread *t = AsanThread::Create(params, current_tid, &stack, detached); in INTERCEPTOR_WINAPI()
169 AsanThread *t = (AsanThread *)__asan::GetCurrentThread(); in INTERCEPTOR_WINAPI()
272 void PlatformTSDDtor(void *tsd) { AsanThread::TSDDtor(tsd); } in PlatformTSDDtor()
H A Dasan_internal.h59 class AsanThread; variable
99 AsanThread *CreateMainThread();
H A Dasan_rtl.cpp528 AsanThread *main_thread = CreateMainThread(); in AsanInitInternal()
617 if (AsanThread *curr_thread = GetCurrentThread()) { in UnpoisonDefaultStack()
633 AsanThread *curr_thread = GetCurrentThread(); in UnpoisonFakeStack()
658 AsanThread *t = GetCurrentThread(); in __asan_extra_spill_area()
664 AsanThread *t = GetCurrentThread(); in __asan_handle_vfork()
H A Dasan_posix.cpp113 AsanThread::TSDDtor(tsd); in PlatformTSDDtor()
147 AsanThread::TSDDtor(tsd); in PlatformTSDDtor()
H A Dasan_interceptors.cpp69 AsanThread *t = GetCurrentThread(); in SetThreadName()
145 if (AsanThread *t = GetCurrentThread()) { \
226 AsanThread *t = (AsanThread *)arg; in asan_thread_start()
265 AsanThread *t = AsanThread::Create(sigset, current_tid, &stack, detached); in INTERCEPTOR()
H A Dasan_mac.cpp156 AsanThread *t = GetCurrentThread(); in asan_register_worker_thread()
158 t = AsanThread::Create(parent_tid, stack, /* detached */ true); in asan_register_worker_thread()
H A Dasan_fake_stack.cpp155 AsanThread *curr_thread = GetCurrentThread(); in GC()
211 AsanThread *t = GetCurrentThread(); in GetFakeStack()
H A Dasan_descriptions.h25 static inline void DescribeThread(AsanThread *t) { in DescribeThread()
H A Dasan_descriptions.cpp197 AsanThread *t = FindThreadByStackAddress(addr); in GetStackAddressInformation()
203 AsanThread::StackFrameAccess access; in GetStackAddressInformation()
H A Dasan_allocator.cpp528 AsanThread *t = GetCurrentThread(); in UpdateAllocationStack()
584 AsanThread *t = GetCurrentThread(); in Allocate()
692 AsanThread *t = GetCurrentThread(); in QuarantineChunk()
883 AsanThread *t = GetCurrentThread(); in Purge()
H A Dasan_report.cpp437 AsanThread *t = GetCurrentThread(); in IsInvalidPointerPair()