Home
last modified time | relevance | path

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

12

/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/asan/
H A Dasan_thread.cc78 AsanThread *AsanThread::Create(thread_callback_t start_routine, void *arg, in Create()
82 uptr size = RoundUpTo(sizeof(AsanThread), PageSize); in Create()
83 AsanThread *thread = (AsanThread*)MmapOrDie(size, __func__); in Create()
93 void AsanThread::TSDDtor(void *tsd) { in TSDDtor()
100 void AsanThread::Destroy() { in Destroy()
113 uptr size = RoundUpTo(sizeof(AsanThread), GetPageSizeCached()); in Destroy()
118 void AsanThread::StartSwitchFiber(FakeStack **fake_stack_save, uptr bottom, in StartSwitchFiber()
139 void AsanThread::FinishSwitchFiber(FakeStack *fake_stack_save, in FinishSwitchFiber()
163 inline AsanThread::StackBounds AsanThread::GetStackBounds() const { in GetStackBounds()
179 uptr AsanThread::stack_top() { in stack_top()
[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()
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/asan/
H A Dasan_thread.cc80 AsanThread *AsanThread::Create(thread_callback_t start_routine, void *arg, in Create()
84 uptr size = RoundUpTo(sizeof(AsanThread), PageSize); in Create()
85 AsanThread *thread = (AsanThread*)MmapOrDie(size, __func__); in Create()
95 void AsanThread::TSDDtor(void *tsd) { in TSDDtor()
102 void AsanThread::Destroy() { in Destroy()
115 uptr size = RoundUpTo(sizeof(AsanThread), GetPageSizeCached()); in Destroy()
120 void AsanThread::StartSwitchFiber(FakeStack **fake_stack_save, uptr bottom, in StartSwitchFiber()
141 void AsanThread::FinishSwitchFiber(FakeStack *fake_stack_save, in FinishSwitchFiber()
165 inline AsanThread::StackBounds AsanThread::GetStackBounds() const { in GetStackBounds()
181 uptr AsanThread::stack_top() { in stack_top()
[all …]
H A Dasan_rtems.cc93 struct AsanThread::InitOptions {
98 static AsanThread *CreateAsanThread(StackTrace *stack, u32 parent_tid, in CreateAsanThread()
103 AsanThread *thread = (AsanThread *)MmapOrDie(sizeof(AsanThread), __func__); in CreateAsanThread()
110 const AsanThread::InitOptions options = {stack_bottom, stack_size, in CreateAsanThread()
119 void AsanThread::SetThreadStackAndTls(const AsanThread::InitOptions *options) { in SetThreadStackAndTls()
134 AsanThread *CreateMainThread() { in CreateMainThread()
157 AsanThread *thread = static_cast<AsanThread *>(hook); in ThreadCreateHook()
165 UnmapOrDie(thread, sizeof(AsanThread)); in ThreadCreateHook()
176 AsanThread *thread = static_cast<AsanThread *>(hook); in ThreadStartHook()
199 AsanThread *thread = static_cast<AsanThread *>(hook); in ThreadExitHook()
[all …]
H A Dasan_fuchsia.cc81 return RoundUpTo(sizeof(AsanThread), PAGE_SIZE); in AsanThreadMmapSize()
84 struct AsanThread::InitOptions {
89 static AsanThread *CreateAsanThread(StackTrace *stack, u32 parent_tid, in CreateAsanThread()
94 AsanThread *thread = (AsanThread *)MmapOrDie(AsanThreadMmapSize(), __func__); in CreateAsanThread()
104 const AsanThread::InitOptions options = {stack_bottom, stack_size}; in CreateAsanThread()
115 void AsanThread::SetThreadStackAndTls(const AsanThread::InitOptions *options) { in SetThreadStackAndTls()
125 AsanThread *CreateMainThread() { in CreateMainThread()
130 AsanThread *t = CreateAsanThread( in CreateMainThread()
160 AsanThread *thread = static_cast<AsanThread *>(hook); in ThreadCreateHook()
176 AsanThread *thread = static_cast<AsanThread *>(hook); in ThreadStartHook()
[all …]
H A Dasan_thread.h33 class AsanThread; variable
46 AsanThread *thread;
52 AsanThread *thread;
61 class AsanThread {
63 static AsanThread *Create(thread_callback_t start_routine, void *arg,
172 explicit ScopedUnwinding(AsanThread *t) : thread(t) { in ScopedUnwinding()
178 AsanThread *thread;
188 AsanThread *GetCurrentThread();
189 void SetCurrentThread(AsanThread *t);
191 AsanThread *FindThreadByStackAddress(uptr addr);
H A Dasan_win.cc132 AsanThread *t = (AsanThread*)arg; in asan_thread_start()
149 AsanThread *t = in INTERCEPTOR_WINAPI()
150 AsanThread::Create(start_routine, arg, current_tid, &stack, detached); in INTERCEPTOR_WINAPI()
214 AsanThread::TSDDtor(tsd); in PlatformTSDDtor()
H A Dasan_internal.h58 class AsanThread; variable
86 AsanThread *CreateMainThread();
H A Dasan_interceptors.cc64 AsanThread *t = GetCurrentThread(); in SetThreadName()
141 if (AsanThread *t = GetCurrentThread()) { \
199 AsanThread *t = nullptr; in asan_thread_start()
200 while ((t = reinterpret_cast<AsanThread *>( in asan_thread_start()
233 AsanThread *t = in INTERCEPTOR()
234 AsanThread::Create(start_routine, arg, current_tid, &stack, detached); in INTERCEPTOR()
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/asan/
H A Dasan_thread.cpp77 AsanThread *AsanThread::Create(thread_callback_t start_routine, void *arg, in Create()
81 uptr size = RoundUpTo(sizeof(AsanThread), PageSize); in Create()
82 AsanThread *thread = (AsanThread*)MmapOrDie(size, __func__); in Create()
92 void AsanThread::TSDDtor(void *tsd) { in TSDDtor()
99 void AsanThread::Destroy() { in Destroy()
106 if (AsanThread *thread = GetCurrentThread()) in Destroy()
120 uptr size = RoundUpTo(sizeof(AsanThread), GetPageSizeCached()); in Destroy()
126 void AsanThread::StartSwitchFiber(FakeStack **fake_stack_save, uptr bottom, in StartSwitchFiber()
147 void AsanThread::FinishSwitchFiber(FakeStack *fake_stack_save, in FinishSwitchFiber()
171 inline AsanThread::StackBounds AsanThread::GetStackBounds() const { in GetStackBounds()
[all …]
H A Dasan_fuchsia.cpp70 AsanThread *curr_thread = GetCurrentThread(); in PlatformUnpoisonStacks()
112 return RoundUpTo(sizeof(AsanThread), _zx_system_get_page_size()); in AsanThreadMmapSize()
115 struct AsanThread::InitOptions {
120 static AsanThread *CreateAsanThread(StackTrace *stack, u32 parent_tid, in CreateAsanThread()
124 AsanThread *thread = (AsanThread *)MmapOrDie(AsanThreadMmapSize(), __func__); in CreateAsanThread()
139 void AsanThread::SetThreadStackAndTls(const AsanThread::InitOptions *options) { in SetThreadStackAndTls()
149 AsanThread *CreateMainThread() { in CreateMainThread()
154 AsanThread *t = CreateAsanThread( in CreateMainThread()
165 const AsanThread::InitOptions options = {__sanitizer::MainThreadStackBase, in CreateMainThread()
185 AsanThread *thread = in BeforeThreadCreateHook()
[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()
244 void PlatformTSDDtor(void *tsd) { AsanThread::TSDDtor(tsd); } in PlatformTSDDtor()
H A Dasan_internal.h59 class AsanThread; variable
97 AsanThread *CreateMainThread();
H A Dasan_rtl.cpp489 AsanThread *main_thread = CreateMainThread(); in AsanInitInternal()
570 if (AsanThread *curr_thread = GetCurrentThread()) { in UnpoisonDefaultStack()
588 AsanThread *curr_thread = GetCurrentThread(); in UnpoisonFakeStack()
613 AsanThread *t = GetCurrentThread(); in __asan_extra_spill_area()
619 AsanThread *t = GetCurrentThread(); in __asan_handle_vfork()
H A Dasan_interceptors.cpp65 AsanThread *t = GetCurrentThread(); in SetThreadName()
144 if (AsanThread *t = GetCurrentThread()) { \
196 AsanThread *t = (AsanThread *)arg;
213 AsanThread *t = in INTERCEPTOR()
214 AsanThread::Create(start_routine, arg, current_tid, &stack, detached); in INTERCEPTOR()
H A Dasan_posix.cpp112 AsanThread::TSDDtor(tsd); in PlatformTSDDtor()
140 AsanThread::TSDDtor(tsd); in PlatformTSDDtor()

12