| /freebsd/contrib/llvm-project/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 …]
|
| /freebsd/contrib/llvm-project/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()
|
| /freebsd/contrib/llvm-project/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() 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_mman.cpp | 90 ThreadState *thr = cur_thread(); in ScopedGlobalProcessor() local 113 ThreadState *thr = cur_thread(); in ~ScopedGlobalProcessor() local 177 static void SignalUnsafeCall(ThreadState *thr, uptr pc) { in SignalUnsafeCall() 192 void *user_alloc_internal(ThreadState *thr, uptr pc, uptr sz, uptr align, in user_alloc_internal() 224 void user_free(ThreadState *thr, uptr pc, void *p, bool signal) { in user_free() 233 void *user_alloc(ThreadState *thr, uptr pc, uptr sz) { in user_alloc() 237 void *user_calloc(ThreadState *thr, uptr pc, uptr size, uptr n) { in user_calloc() 250 void *user_reallocarray(ThreadState *thr, uptr pc, void *p, uptr size, uptr n) { in user_reallocarray() 260 void OnUserAlloc(ThreadState *thr, uptr pc, uptr p, uptr sz, bool write) { in OnUserAlloc() 278 void OnUserFree(ThreadState *thr, uptr pc, uptr p, bool write) { in OnUserFree() [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.cpp | 80 static TracePart* TracePartAlloc(ThreadState* thr) { in TracePartAlloc() 233 void DoReset(ThreadState* thr, uptr epoch) SANITIZER_NO_THREAD_SAFETY_ANALYSIS { in DoReset() 252 static TidSlot* FindSlotAndLock(ThreadState* thr) in FindSlotAndLock() 296 void SlotAttachAndLock(ThreadState* thr) { in SlotAttachAndLock() 320 static void SlotDetachImpl(ThreadState* thr, bool exiting) { in SlotDetachImpl() 352 void SlotDetach(ThreadState* thr) { in SlotDetach() 357 void SlotLock(ThreadState* thr) SANITIZER_NO_THREAD_SAFETY_ANALYSIS { in SlotLock() 377 void SlotUnlock(ThreadState* thr) { in SlotUnlock() 569 void UnmapShadow(ThreadState* thr, uptr addr, uptr size) { in UnmapShadow() 683 ThreadState* thr = cur_thread(); in CheckUnwind() local [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() 216 void ThreadFinish(ThreadState *thr) { in ThreadFinish() 286 Tid ThreadConsumeTid(ThreadState *thr, uptr pc, uptr uid) { in ThreadConsumeTid() 295 void ThreadJoin(ThreadState *thr, uptr pc, Tid tid) { in ThreadJoin() [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_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 281 void ImitateTlsWrite(ThreadState *thr, uptr tls_addr, uptr tls_size) { in ImitateTlsWrite()
|
| 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_rtl.h | 117 ThreadState *thr; // currently wired thread, or nullptr member 146 ThreadState *thr; member 255 ThreadState *thr = reinterpret_cast<ThreadState *>(cur_thread_placeholder); in cur_thread_init() local 260 inline void set_cur_thread(ThreadState *thr) { in set_cur_thread() 271 ThreadState *thr; variable 480 #define GET_STACK_TRACE_FATAL(thr, pc) \ argument 539 void MemoryAccessRange(ThreadState *thr, uptr pc, uptr addr, uptr size, in MemoryAccessRange() 635 : thr_(thr), locked_(recursive ? thr->slot_locked : false) { in thr_() argument 660 SlotUnlocker(ThreadState *thr) : thr_(thr), locked_(thr->slot_locked) { in SlotUnlocker() 675 ALWAYS_INLINE void ProcessPendingSignals(ThreadState *thr) { in ProcessPendingSignals() [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()
|
| H A D | tsan_external.cpp | 62 static void PushTag(ThreadState *thr, uptr tag) { in PushTag() 65 static void PopTag(ThreadState *thr) { FuncExit(thr); } in PopTag() 74 ThreadState *thr = cur_thread(); in ExternalAccess() local
|
| H A D | tsan_interface_atomic.cpp | 228 static T AtomicRMW(ThreadState *thr, uptr pc, volatile T *a, T v, morder mo) { in AtomicRMW() 525 ThreadState *const thr = cur_thread(); in AtomicImpl() local 886 void AtomicGo(ThreadState *thr, uptr cpc, uptr pc, Types... args) { in AtomicGo() 897 auto AtomicGoRet(ThreadState *thr, uptr cpc, uptr pc, Types... args) { in AtomicGoRet() 910 void __tsan_go_atomic32_load(ThreadState *thr, uptr cpc, uptr pc, u8 *a) { in __tsan_go_atomic32_load() 915 void __tsan_go_atomic64_load(ThreadState *thr, uptr cpc, uptr pc, u8 *a) { in __tsan_go_atomic64_load() 920 void __tsan_go_atomic32_store(ThreadState *thr, uptr cpc, uptr pc, u8 *a) { in __tsan_go_atomic32_store() 925 void __tsan_go_atomic64_store(ThreadState *thr, uptr cpc, uptr pc, u8 *a) { in __tsan_go_atomic64_store() 930 void __tsan_go_atomic32_fetch_add(ThreadState *thr, uptr cpc, uptr pc, u8 *a) { in __tsan_go_atomic32_fetch_add() 936 void __tsan_go_atomic64_fetch_add(ThreadState *thr, uptr cpc, uptr pc, u8 *a) { in __tsan_go_atomic64_fetch_add() [all …]
|
| H A D | tsan_interceptors_posix.cpp | 185 void EnterBlockingFunc(ThreadState *thr) { in EnterBlockingFunc() 267 static ThreadSignalContext *SigCtx(ThreadState *thr) { in SigCtx() 285 ScopedInterceptor::ScopedInterceptor(ThreadState *thr, const char *fname, in ScopedInterceptor() 364 #define READ_STRING_OF_LEN(thr, pc, s, len, n) \ argument 368 #define READ_STRING(thr, pc, s, n) \ argument 390 ThreadState *thr; member 434 ThreadState *thr = cur_thread(); in at_exit_callback_installed_at() local 443 ThreadState *thr = cur_thread(); in cxa_at_exit_callback_installed_at() local 473 static int setup_at_exit_wrapper(ThreadState *thr, uptr pc, void(*f)(), in setup_at_exit_wrapper() 509 ThreadState *thr = cur_thread(); in on_exit_callback_installed_at() local [all …]
|
| /freebsd/sys/dev/hwt/ |
| H A D | hwt_thread.c | 74 struct hwt_thread *thr; in hwt_thread_first() local 91 struct hwt_thread *thr; in hwt_thread_lookup() local 116 struct hwt_thread *thr; in hwt_thread_alloc() local 140 hwt_thread_free(struct hwt_thread *thr) in hwt_thread_free() 155 hwt_thread_insert(struct hwt_context *ctx, struct hwt_thread *thr, in hwt_thread_insert()
|
| H A D | hwt_hook.c | 63 struct hwt_thread *thr; in hwt_switch_in() local 99 struct hwt_thread *thr; in hwt_switch_out() local 133 struct hwt_thread *thr; in hwt_hook_thread_exit() local 166 struct hwt_thread *thr; in hwt_hook_mmap() local 210 struct hwt_thread *thr; in hwt_hook_thread_create() local
|
| H A D | hwt_thread.h | 60 #define HWT_THR_LOCK(thr) mtx_lock(&(thr)->mtx) argument 61 #define HWT_THR_UNLOCK(thr) mtx_unlock(&(thr)->mtx) argument 62 #define HWT_THR_ASSERT_LOCKED(thr) mtx_assert(&(thr)->mtx, MA_OWNED) argument
|
| /freebsd/contrib/llvm-project/openmp/runtime/src/ |
| H A D | ompt-specific.cpp | 52 kmp_info_t *thr = ompt_get_thread(); in __ompt_get_teaminfo() local 105 kmp_info_t *thr = ompt_get_thread(); in __ompt_get_task_info_object() local 145 kmp_info_t *thr = ompt_get_thread(); in __ompt_get_scheduling_taskinfo() local 260 void __ompt_lw_taskteam_init(ompt_lw_taskteam_t *lwt, kmp_info_t *thr, int gtid, in __ompt_lw_taskteam_init() 276 void __ompt_lw_taskteam_link(ompt_lw_taskteam_t *lwt, kmp_info_t *thr, in __ompt_lw_taskteam_link() 320 void __ompt_lw_taskteam_unlink(kmp_info_t *thr) { in __ompt_lw_taskteam_unlink() 350 kmp_info_t *thr = ompt_get_thread(); in __ompt_get_task_data() local 373 kmp_info_t *thr = ompt_get_thread(); in __ompt_get_task_info_internal() local 470 kmp_info_t *thr = ompt_get_thread(); in __ompt_get_task_memory_internal() local 507 kmp_info_t *thr) { in __ompt_get_barrier_kind()
|
| H A D | ompt-specific.h | 83 #define OMPT_CUR_TASK_INFO(thr) (&((thr)->th.th_current_task->ompt_task_info)) argument 84 #define OMPT_CUR_TASK_DATA(thr) \ argument 86 #define OMPT_CUR_TEAM_INFO(thr) (&((thr)->th.th_team->t.ompt_team_info)) argument 87 #define OMPT_CUR_TEAM_DATA(thr) \ argument 95 kmp_info_t *thr = __kmp_threads[gtid]; in __ompt_load_return_address() local
|
| /freebsd/lib/libstdthreads/ |
| H A D | thrd.c | 52 thrd_create(thrd_t *thr, thrd_start_t func, void *arg) in thrd_create() 80 thrd_detach(thrd_t thr) in thrd_detach() 103 thrd_join(thrd_t thr, int *res) in thrd_join()
|
| /freebsd/sys/arm64/spe/ |
| H A D | arm_spe_backend.c | 225 struct hwt_thread *thr; in spe_backend_deinit() local 301 struct hwt_thread *thr = NULL; in spe_backend_configure() local 589 struct hwt_thread *thr; in spe_backend_stop() local 640 struct hwt_thread *thr; in spe_backend_svc_buf() local 735 spe_backend_thread_alloc(struct hwt_thread *thr) in spe_backend_thread_alloc() 757 spe_backend_thread_free(struct hwt_thread *thr) in spe_backend_thread_free()
|
| /freebsd/contrib/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()
|
| /freebsd/sys/ddb/ |
| H A D | db_thread.c | 54 struct thread *thr; in db_set_thread() local 82 struct thread *thr; in db_show_threads() local
|
| /freebsd/sys/kern/ |
| H A D | subr_kdb.c | 637 kdb_thr_ctx(struct thread *thr) in kdb_thr_ctx() 660 struct thread *thr; in kdb_thr_first() local 692 struct thread *thr; in kdb_thr_lookup() local 701 kdb_thr_next(struct thread *thr) in kdb_thr_next() 727 kdb_thr_select(struct thread *thr) in kdb_thr_select()
|