/openbsd/gnu/llvm/compiler-rt/lib/tsan/go/ |
H A D | tsan_go.cpp | 143 auto *thr = (ThreadState *)Alloc(sizeof(ThreadState)); in AllocGoroutine() local 151 ThreadState *thr = AllocGoroutine(); in __tsan_init() local 160 ThreadState *thr = main_thr; in __tsan_fini() local 201 void __tsan_func_enter(ThreadState *thr, void *pc) { in __tsan_func_enter() 205 void __tsan_func_exit(ThreadState *thr) { in __tsan_func_exit() 221 ThreadState *thr = AllocGoroutine(); in __tsan_go_start() local 227 void __tsan_go_end(ThreadState *thr) { in __tsan_go_end() 240 void __tsan_acquire(ThreadState *thr, void *addr) { in __tsan_acquire() 248 void __tsan_release(ThreadState *thr, void *addr) { in __tsan_release() 252 void __tsan_release_merge(ThreadState *thr, void *addr) { in __tsan_release_merge() [all …]
|
/openbsd/gnu/llvm/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_fd.cpp | 56 static FdSync *allocsync(ThreadState *thr, uptr pc) { in allocsync() 69 static void unref(ThreadState *thr, uptr pc, FdSync *s) { in unref() 80 static FdDesc *fddesc(ThreadState *thr, uptr pc, int fd) { in fddesc() 145 void FdOnFork(ThreadState *thr, uptr pc) { in FdOnFork() 178 void FdAcquire(ThreadState *thr, uptr pc, int fd) { in FdAcquire() 189 void FdRelease(ThreadState *thr, uptr pc, int fd) { in FdRelease() 202 void FdAccess(ThreadState *thr, uptr pc, int fd) { in FdAccess() 253 void FdFileCreate(ThreadState *thr, uptr pc, int fd) { in FdFileCreate() 279 void FdEventCreate(ThreadState *thr, uptr pc, int fd) { in FdEventCreate() 286 void FdSignalCreate(ThreadState *thr, uptr pc, int fd) { in FdSignalCreate() [all …]
|
H A D | tsan_mman.cpp | 85 ThreadState *thr = cur_thread(); in ScopedGlobalProcessor() local 108 ThreadState *thr = cur_thread(); in ~ScopedGlobalProcessor() local 163 static void SignalUnsafeCall(ThreadState *thr, uptr pc) { in SignalUnsafeCall() 219 void *user_alloc(ThreadState *thr, uptr pc, uptr sz) { in user_alloc() 336 void *user_valloc(ThreadState *thr, uptr pc, uptr sz) { in user_valloc() 340 void *user_pvalloc(ThreadState *thr, uptr pc, uptr sz) { in user_pvalloc() 366 ThreadState *thr = cur_thread(); in invoke_malloc_hook() local 373 ThreadState *thr = cur_thread(); in invoke_free_hook() local 380 ThreadState *thr = cur_thread(); in Alloc() local 390 ThreadState *thr = cur_thread(); in FreeImpl() local [all …]
|
H A D | tsan_rtl.cpp | 295 void SlotAttachAndLock(ThreadState* thr) { in SlotAttachAndLock() 351 void SlotDetach(ThreadState* thr) { in SlotDetach() 376 void SlotUnlock(ThreadState* thr) { in SlotUnlock() 669 ThreadState* thr = cur_thread(); in CheckUnwind() local 680 void Initialize(ThreadState *thr) { in Initialize() 767 int Finalize(ThreadState *thr) { in Finalize() 875 void GrowShadowStack(ThreadState *thr) { in GrowShadowStack() 909 static bool TraceSkipGap(ThreadState* thr) { in TraceSkipGap() 940 void TraceSwitchPart(ThreadState* thr) { in TraceSwitchPart() 1044 void ThreadIgnoreEnd(ThreadState *thr) { in ThreadIgnoreEnd() [all …]
|
H A D | tsan_rtl_mutex.cpp | 30 ThreadState *thr; member 44 void DDMutexInit(ThreadState *thr, uptr pc, SyncVar *s) { in DDMutexInit() 80 static void RecordMutexUnlock(ThreadState *thr, uptr addr) { in RecordMutexUnlock() 324 void MutexReadUnlock(ThreadState *thr, uptr pc, uptr addr) { in MutexReadUnlock() 419 void MutexRepair(ThreadState *thr, uptr pc, uptr addr) { in MutexRepair() 441 void Acquire(ThreadState *thr, uptr pc, uptr addr) { in Acquire() 455 void AcquireGlobal(ThreadState *thr) { in AcquireGlobal() 463 void Release(ThreadState *thr, uptr pc, uptr addr) { in Release() 476 void ReleaseStore(ThreadState *thr, uptr pc, uptr addr) { in ReleaseStore() 502 void IncrementEpoch(ThreadState *thr) { in IncrementEpoch() [all …]
|
H A D | tsan_rtl_access.cpp | 18 ALWAYS_INLINE USED bool TryTraceMemoryAccess(ThreadState* thr, uptr pc, in TryTraceMemoryAccess() 87 void TraceFunc(ThreadState* thr, uptr pc) { in TraceFunc() 95 NOINLINE void TraceRestartFuncEntry(ThreadState* thr, uptr pc) { in TraceRestartFuncEntry() 100 NOINLINE void TraceRestartFuncExit(ThreadState* thr) { in TraceRestartFuncExit() 105 void TraceMutexLock(ThreadState* thr, EventType type, uptr pc, uptr addr, in TraceMutexLock() 122 void TraceMutexUnlock(ThreadState* thr, uptr addr) { in TraceMutexUnlock() 134 void TraceTime(ThreadState* thr) { in TraceTime() 195 bool CheckRaces(ThreadState* thr, RawShadow* shadow_mem, Shadow cur, in CheckRaces() 305 bool CheckRaces(ThreadState* thr, RawShadow* shadow_mem, Shadow cur, in CheckRaces() 448 void RestartMemoryAccess16(ThreadState* thr, uptr pc, uptr addr, in RestartMemoryAccess16() [all …]
|
H A D | tsan_rtl_thread.cpp | 74 static void ThreadCheckIgnore(ThreadState *thr) { in ThreadCheckIgnore() 83 static void ThreadCheckIgnore(ThreadState *thr) {} in ThreadCheckIgnore() 86 void ThreadFinalize(ThreadState *thr) { in ThreadFinalize() 104 int ThreadCount(ThreadState *thr) { in ThreadCount() 145 ThreadState *thr; member 152 void ThreadStart(ThreadState *thr, Tid tid, tid_t os_id, in ThreadStart() 214 void ThreadFinish(ThreadState *thr) { in ThreadFinish() 293 void ThreadJoin(ThreadState *thr, uptr pc, Tid tid) { in ThreadJoin() 316 void ThreadDetach(ThreadState *thr, uptr pc, Tid tid) { in ThreadDetach() 328 void ThreadSetName(ThreadState *thr, const char *name) { in ThreadSetName() [all …]
|
H A D | tsan_platform_mac.cpp | 64 static void ThreadStateDestructor(void *thr) { in ThreadStateDestructor() 96 ThreadState *thr = (ThreadState *)pthread_getspecific(thread_state_key); in cur_thread() local 105 void set_cur_thread(ThreadState *thr) { in set_cur_thread() 111 ThreadState *thr = (ThreadState *)pthread_getspecific(thread_state_key); in cur_thread_finalize() local 207 ThreadState *thr = cur_thread(); in ThreadCreateCallback() local 219 ThreadState *thr = cur_thread(); in ThreadTerminateCallback() local 278 void ImitateTlsWrite(ThreadState *thr, uptr tls_addr, uptr tls_size) { in ImitateTlsWrite()
|
H A D | tsan_rtl.h | 114 ThreadState *thr; // currently wired thread, or nullptr member 143 ThreadState *thr; member 257 inline void set_cur_thread(ThreadState *thr) { in set_cur_thread() 268 ThreadState *thr; variable 477 #define GET_STACK_TRACE_FATAL(thr, pc) \ argument 672 ALWAYS_INLINE void ProcessPendingSignals(ThreadState *thr) { in ProcessPendingSignals() 680 void LazyInitialize(ThreadState *thr) { in LazyInitialize() 729 ALWAYS_INLINE void TraceRelease(ThreadState *thr, EventT *evp) { in TraceRelease() 735 void TraceEvent(ThreadState *thr, EventT ev) { in TraceEvent() 780 void FuncEntry(ThreadState *thr, uptr pc) { in FuncEntry() [all …]
|
H A D | tsan_interface.cpp | 31 ThreadState *thr = cur_thread(); in __tsan_read16_pc() local 38 ThreadState *thr = cur_thread(); in __tsan_write16_pc() local 47 ThreadState *thr = cur_thread(); in __tsan_unaligned_read16() local 54 ThreadState *thr = cur_thread(); in __tsan_unaligned_write16() local
|
H A D | tsan_interface_atomic.cpp | 262 static void AtomicStore(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicStore() 342 static T AtomicExchange(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicExchange() 348 static T AtomicFetchAdd(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicFetchAdd() 354 static T AtomicFetchSub(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicFetchSub() 360 static T AtomicFetchAnd(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicFetchAnd() 366 static T AtomicFetchOr(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicFetchOr() 372 static T AtomicFetchXor(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicFetchXor() 449 static T AtomicCAS(ThreadState *thr, uptr pc, in AtomicCAS() 460 static void AtomicFence(ThreadState *thr, uptr pc, morder mo) { in AtomicFence() 909 ThreadState *thr, uptr cpc, uptr pc, u8 *a) { in __tsan_go_atomic32_compare_exchange() [all …]
|
H A D | tsan_rtl_proc.cpp | 45 void ProcWire(Processor *proc, ThreadState *thr) { in ProcWire() 52 void ProcUnwire(Processor *proc, ThreadState *thr) { in ProcUnwire()
|
/openbsd/gnu/llvm/compiler-rt/lib/tsan/dd/ |
H A D | dd_rtl.cpp | 21 static u32 CurrentStackTrace(Thread *thr, uptr skip) { in CurrentStackTrace() 31 static void PrintStackTrace(Thread *thr, u32 stk) { in PrintStackTrace() 38 static void ReportDeadlock(Thread *thr, DDReport *rep) { in ReportDeadlock() 57 Callback::Callback(Thread *thr) in Callback() 99 void ThreadInit(Thread *thr) { in ThreadInit() 106 void ThreadDestroy(Thread *thr) { in ThreadDestroy() 111 void MutexBeforeLock(Thread *thr, uptr m, bool writelock) { in MutexBeforeLock() 124 void MutexAfterLock(Thread *thr, uptr m, bool writelock, bool trylock) { in MutexAfterLock() 137 void MutexBeforeUnlock(Thread *thr, uptr m, bool writelock) { in MutexBeforeUnlock() 148 void MutexDestroy(Thread *thr, uptr m) { in MutexDestroy()
|
/openbsd/gnu/llvm/compiler-rt/lib/tsan/tests/unit/ |
H A D | tsan_mman_test.cpp | 37 ThreadState *thr = cur_thread(); in TEST() local 51 ThreadState *thr = cur_thread(); in TEST() local 98 ThreadState *thr = cur_thread(); in TEST() local 111 ThreadState *thr = cur_thread(); in TEST() local 140 ThreadState *thr = cur_thread(); in TEST() local 162 ThreadState *thr = cur_thread(); in TEST() local 179 ThreadState *thr = cur_thread(); in TEST() local 189 ThreadState *thr = cur_thread(); in TEST() local
|
H A D | tsan_sync_test.cpp | 19 ThreadState *thr = cur_thread(); in TEST() local 35 ThreadState *thr = cur_thread(); in TEST() local 56 ThreadState *thr = cur_thread(); in TEST() local 79 ThreadState *thr = cur_thread(); in TEST() local 114 ThreadState *thr = cur_thread(); in TEST() local
|
H A D | tsan_trace_test.cpp | 37 for (auto *&thr : threads) { in ThreadArray() local 55 auto *thr = threads[i]; in Finish() local 74 ThreadArray<1> thr; in TRACE_TEST() local 129 ThreadArray<1> thr; in TRACE_TEST() local 172 ThreadArray<1> thr; in TRACE_TEST() local 202 ThreadArray<1> thr; in TRACE_TEST() local 247 ThreadArray<1> thr; in TRACE_TEST() local 274 uptr finished, uptr excess, uptr recycle) { in TRACE_TEST()
|
/openbsd/gnu/gcc/libgomp/ |
H A D | ordered.c | 40 struct gomp_thread *thr = gomp_thread (); in gomp_ordered_first() local 71 struct gomp_thread *thr = gomp_thread (); in gomp_ordered_last() local 106 struct gomp_thread *thr = gomp_thread (); in gomp_ordered_next() local 154 struct gomp_thread *thr = gomp_thread (); in gomp_ordered_static_init() local 172 struct gomp_thread *thr = gomp_thread (); in gomp_ordered_static_next() local 196 struct gomp_thread *thr = gomp_thread (); in gomp_ordered_sync() local
|
H A D | loop.c | 69 struct gomp_thread *thr = gomp_thread (); in gomp_loop_static_start() local 83 struct gomp_thread *thr = gomp_thread (); in gomp_loop_dynamic_start() local 105 struct gomp_thread *thr = gomp_thread (); in gomp_loop_guided_start() local 150 struct gomp_thread *thr = gomp_thread (); in gomp_loop_ordered_static_start() local 167 struct gomp_thread *thr = gomp_thread (); in gomp_loop_ordered_dynamic_start() local 186 struct gomp_thread *thr = gomp_thread (); in gomp_loop_ordered_guided_start() local 248 struct gomp_thread *thr = gomp_thread (); in gomp_loop_dynamic_next() local 265 struct gomp_thread *thr = gomp_thread (); in gomp_loop_guided_next() local 277 struct gomp_thread *thr = gomp_thread (); in GOMP_loop_runtime_next() local 302 struct gomp_thread *thr = gomp_thread (); in gomp_loop_ordered_static_next() local [all …]
|
H A D | iter.c | 43 struct gomp_thread *thr = gomp_thread (); in gomp_iter_static_next() local 149 struct gomp_thread *thr = gomp_thread (); in gomp_iter_dynamic_next_locked() local 185 struct gomp_thread *thr = gomp_thread (); in gomp_iter_dynamic_next() local 235 struct gomp_thread *thr = gomp_thread (); in gomp_iter_guided_next_locked() local 269 struct gomp_thread *thr = gomp_thread (); in gomp_iter_guided_next() local
|
H A D | work.c | 74 struct gomp_thread *thr = gomp_thread (); in gomp_work_share_start() local 148 struct gomp_thread *thr = gomp_thread (); in gomp_work_share_end() local 186 struct gomp_thread *thr = gomp_thread (); in gomp_work_share_end_nowait() local
|
H A D | team.c | 73 struct gomp_thread *thr; in gomp_thread_start() local 182 struct gomp_thread *thr, *nthr; in gomp_team_start() local 310 struct gomp_thread *thr = gomp_thread (); in gomp_team_end() local 326 struct gomp_thread *thr; in initialize_team() local
|
H A D | single.c | 54 struct gomp_thread *thr = gomp_thread (); in GOMP_single_copy_start() local 81 struct gomp_thread *thr = gomp_thread (); in GOMP_single_copy_end() local
|
/openbsd/usr.sbin/unbound/testcode/ |
H A D | checklocks.c | 232 ordercheck_locklock(struct thr_check* thr, struct checked_lock* lock) in ordercheck_locklock() 252 ordercheck_lockcreate(struct thr_check* thr, struct checked_lock* lock) in ordercheck_lockcreate() 277 struct thr_check *thr = (struct thr_check*)pthread_getspecific( in checklock_init() local 401 finish_acquire_lock(struct thr_check* thr, struct checked_lock* lock, in finish_acquire_lock() 447 struct thr_check *thr = (struct thr_check*)pthread_getspecific( in checklock_lockit() local 589 struct thr_check *thr; in checklock_unlock() local 656 open_lockorder(struct thr_check* thr) in open_lockorder() 677 struct thr_check* thr = (struct thr_check*)arg; in checklock_main() local 740 struct thr_check* thr = (struct thr_check*)calloc(1, in checklock_thrcreate() local 789 held_debug_info(struct thr_check* thr, struct checked_lock* lock) in held_debug_info() [all …]
|
/openbsd/usr.sbin/unbound/util/ |
H A D | locks.c | 113 ub_thr_fork_create(ub_thread_type* thr, void* (*func)(void*), void* arg) in ub_thr_fork_create() 226 void ub_thread_create(ub_thread_type* thr, void* (*func)(void*), void* arg) in ub_thread_create() 249 void ub_thread_join(ub_thread_type thr) in ub_thread_join()
|
/openbsd/sbin/unwind/libunbound/util/ |
H A D | locks.c | 113 ub_thr_fork_create(ub_thread_type* thr, void* (*func)(void*), void* arg) in ub_thr_fork_create() 226 void ub_thread_create(ub_thread_type* thr, void* (*func)(void*), void* arg) in ub_thread_create() 249 void ub_thread_join(ub_thread_type thr) in ub_thread_join()
|