/openbsd-src/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 169 void __tsan_read(ThreadState *thr, void *addr, void *pc) { in __tsan_read() 173 void __tsan_read_pc(ThreadState *thr, void *addr, uptr callpc, uptr pc) { in __tsan_read_pc() 181 void __tsan_write(ThreadState *thr, void *addr, void *pc) { in __tsan_write() 185 void __tsan_write_pc(ThreadState *thr, void *addr, uptr callpc, uptr pc) { in __tsan_write_pc() 193 void __tsan_read_range(ThreadState *thr, void *addr, uptr size, uptr pc) { in __tsan_read_range() 197 void __tsan_write_range(ThreadState *thr, void *addr, uptr size, uptr pc) { in __tsan_write_range() 201 void __tsan_func_enter(ThreadState *thr, void *pc) { in __tsan_func_enter() [all …]
|
/openbsd-src/gnu/llvm/compiler-rt/lib/tsan/rtl/ |
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() 178 void *user_alloc_internal(ThreadState *thr, uptr pc, uptr sz, uptr align, in user_alloc_internal() 210 void user_free(ThreadState *thr, uptr pc, void *p, bool signal) { in user_free() 219 void *user_alloc(ThreadState *thr, uptr pc, uptr sz) { in user_alloc() 223 void *user_calloc(ThreadState *thr, uptr pc, uptr size, uptr n) { in user_calloc() 236 void *user_reallocarray(ThreadState *thr, uptr pc, void *p, uptr size, uptr n) { in user_reallocarray() 246 void OnUserAlloc(ThreadState *thr, uptr pc, uptr p, uptr sz, bool write) { in OnUserAlloc() 264 void OnUserFree(ThreadState *thr, uptr pc, uptr p, bool write) { in OnUserFree() [all …]
|
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() 101 static void init(ThreadState *thr, uptr pc, int fd, FdSync *s, in init() 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() 210 void FdClose(ThreadState *thr, uptr pc, int fd, bool write) { in FdClose() 253 void FdFileCreate(ThreadState *thr, uptr pc, int fd) { in FdFileCreate() [all …]
|
H A D | tsan_rtl.cpp | 79 static TracePart* TracePartAlloc(ThreadState* thr) { in TracePartAlloc() 232 void DoReset(ThreadState* thr, uptr epoch) SANITIZER_NO_THREAD_SAFETY_ANALYSIS { in DoReset() 251 static TidSlot* FindSlotAndLock(ThreadState* thr) in FindSlotAndLock() 295 void SlotAttachAndLock(ThreadState* thr) { in SlotAttachAndLock() 319 static void SlotDetachImpl(ThreadState* thr, bool exiting) { in SlotDetachImpl() 351 void SlotDetach(ThreadState* thr) { in SlotDetach() 356 void SlotLock(ThreadState* thr) SANITIZER_NO_THREAD_SAFETY_ANALYSIS { in SlotLock() 376 void SlotUnlock(ThreadState* thr) { in SlotUnlock() 568 void UnmapShadow(ThreadState *thr, uptr addr, uptr size) { in UnmapShadow() 669 ThreadState* thr = cur_thread(); in CheckUnwind() local [all …]
|
H A D | tsan_rtl_mutex.cpp | 30 ThreadState *thr; member 44 void DDMutexInit(ThreadState *thr, uptr pc, SyncVar *s) { in DDMutexInit() 50 static void ReportMutexMisuse(ThreadState *thr, uptr pc, ReportType typ, in ReportMutexMisuse() 68 static void RecordMutexLock(ThreadState *thr, uptr pc, uptr addr, in RecordMutexLock() 80 static void RecordMutexUnlock(ThreadState *thr, uptr addr) { in RecordMutexUnlock() 86 void MutexCreate(ThreadState *thr, uptr pc, uptr addr, u32 flagz) { in MutexCreate() 98 void MutexDestroy(ThreadState *thr, uptr pc, uptr addr, u32 flagz) { in MutexDestroy() 140 void MutexPreLock(ThreadState *thr, uptr pc, uptr addr, u32 flagz) { in MutexPreLock() 158 void MutexPostLock(ThreadState *thr, uptr pc, uptr addr, u32 flagz, int rec) { in MutexPostLock() 216 int MutexUnlock(ThreadState *thr, uptr pc, uptr addr, u32 flagz) { in MutexUnlock() [all …]
|
H A D | tsan_rtl_access.cpp | 18 ALWAYS_INLINE USED bool TryTraceMemoryAccess(ThreadState* thr, uptr pc, in TryTraceMemoryAccess() 57 bool TryTraceMemoryAccessRange(ThreadState* thr, uptr pc, uptr addr, uptr size, in TryTraceMemoryAccessRange() 78 void TraceMemoryAccessRange(ThreadState* thr, uptr pc, uptr addr, uptr size, in TraceMemoryAccessRange() 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() 148 NOINLINE void DoReportRace(ThreadState* thr, RawShadow* shadow_mem, Shadow cur, in DoReportRace() [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() 116 Tid ThreadCreate(ThreadState *thr, uptr pc, uptr uid, bool detached) { in ThreadCreate() 145 ThreadState *thr; member 152 void ThreadStart(ThreadState *thr, Tid tid, tid_t os_id, in ThreadStart() 214 void ThreadFinish(ThreadState *thr) { in ThreadFinish() 284 Tid ThreadConsumeTid(ThreadState *thr, uptr pc, uptr uid) { in ThreadConsumeTid() 293 void ThreadJoin(ThreadState *thr, uptr pc, Tid tid) { in ThreadJoin() [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 252 ThreadState *thr = reinterpret_cast<ThreadState *>(cur_thread_placeholder); in cur_thread_init() local 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 536 void MemoryAccessRange(ThreadState *thr, uptr pc, uptr addr, uptr size, in MemoryAccessRange() 632 : thr_(thr), locked_(recursive ? thr->slot_locked : false) { in thr_() argument 657 SlotUnlocker(ThreadState *thr) : thr_(thr), locked_(thr->slot_locked) { in SlotUnlocker() 672 ALWAYS_INLINE void ProcessPendingSignals(ThreadState *thr) { in ProcessPendingSignals() [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 | 224 static T AtomicLoad(ThreadState *thr, uptr pc, const volatile T *a, morder mo) { in AtomicLoad() 262 static void AtomicStore(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicStore() 285 static T AtomicRMW(ThreadState *thr, uptr pc, volatile T *a, T v, morder mo) { in AtomicRMW() 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() 378 static T AtomicFetchNand(ThreadState *thr, uptr pc, volatile T *a, T v, in AtomicFetchNand() [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-src/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-src/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-src/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-src/usr.sbin/unbound/testcode/ |
H A D | checklocks.c | 243 ordercheck_locklock(struct thr_check* thr, struct checked_lock* lock) in ordercheck_locklock() 263 ordercheck_lockcreate(struct thr_check* thr, struct checked_lock* lock) in ordercheck_lockcreate() 288 struct thr_check *thr = (struct thr_check*)pthread_getspecific( in checklock_init() local 412 finish_acquire_lock(struct thr_check* thr, struct checked_lock* lock, in finish_acquire_lock() 458 struct thr_check *thr = (struct thr_check*)pthread_getspecific( in checklock_lockit() local 609 struct thr_check *thr; in checklock_unlock() local 680 open_lockorder(struct thr_check* thr) in open_lockorder() 701 struct thr_check* thr = (struct thr_check*)arg; in checklock_main() local 764 struct thr_check* thr = (struct thr_check*)calloc(1, in checklock_thrcreate() local 813 held_debug_info(struct thr_check* thr, struct checked_lock* lock) in held_debug_info() [all …]
|
/openbsd-src/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()
|
/openbsd-src/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()
|