/netbsd/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/ |
H A D | tsan_rtl_mutex.cc | 33 : thr(thr) in Callback() 481 thr->clock.set(thr->fast_state.epoch()); in AcquireImpl() 482 thr->clock.acquire(&thr->proc()->clock_cache, c); in AcquireImpl() 489 thr->clock.set(thr->fast_state.epoch()); in ReleaseImpl() 490 thr->fast_synch_epoch = thr->fast_state.epoch(); in ReleaseImpl() 491 thr->clock.release(&thr->proc()->clock_cache, c); in ReleaseImpl() 498 thr->clock.set(thr->fast_state.epoch()); in ReleaseStoreImpl() 499 thr->fast_synch_epoch = thr->fast_state.epoch(); in ReleaseStoreImpl() 507 thr->clock.set(thr->fast_state.epoch()); in AcquireReleaseImpl() 508 thr->fast_synch_epoch = thr->fast_state.epoch(); in AcquireReleaseImpl() [all …]
|
H A D | tsan_rtl_thread.cc | 27 , thr() in ThreadContext() 54 thr = 0; in OnCreated() 91 thr = args->thr; in OnStarted() 100 thr->shadow_stack_pos = thr->shadow_stack; in OnStarted() 107 thr->shadow_stack_pos = thr->shadow_stack; in OnStarted() 145 thr->clock.ResetCached(&thr->proc()->clock_cache); in OnFinished() 153 thr = 0; in OnFinished() 279 if (thr->stk_addr && thr->stk_size) in ThreadFinish() 280 DontNeedShadowFor(thr->stk_addr, thr->stk_size); in ThreadFinish() 281 if (thr->tls_addr && thr->tls_size) in ThreadFinish() [all …]
|
H A D | tsan_fd.cc | 100 unref(thr, pc, d->sync); in init() 104 unref(thr, pc, s); in init() 108 unref(thr, pc, s); in init() 111 d->creation_tid = thr->tid; in init() 212 unref(thr, pc, d->sync); in FdClose() 239 init(thr, pc, rfd, ref(s)); in FdPipeCreate() 241 unref(thr, pc, s); in FdPipeCreate() 248 init(thr, pc, fd, allocsync(thr, pc)); in FdEventCreate() 255 init(thr, pc, fd, 0); in FdSignalCreate() 262 init(thr, pc, fd, 0); in FdInotifyCreate() [all …]
|
H A D | tsan_rtl.cc | 522 const int sz = thr->shadow_stack_end - thr->shadow_stack; in GrowShadowStack() 541 if (thr->shadow_stack_pos == thr->shadow_stack_end) in CurrentStackId() 548 StackTrace(thr->shadow_stack, thr->shadow_stack_pos - thr->shadow_stack)); in CurrentStackId() 882 (void)thr; in MemoryRangeSet() 957 TraceAddEvent(thr, thr->fast_state, EventTypeMop, pc); in MemoryRangeFreed() 990 DCHECK_GE(thr->shadow_stack_pos, thr->shadow_stack); in FuncEntry() 994 if (thr->shadow_stack_pos == thr->shadow_stack_end) in FuncEntry() 1010 DCHECK_GT(thr->shadow_stack_pos, thr->shadow_stack); in FuncExit() 1024 thr->mop_ignore_set.Add(CurrentStackId(thr, pc)); in ThreadIgnoreBegin() 1044 return thr->shadow_stack_pos - thr->shadow_stack; in __tsan_testonly_shadow_stack_current_size() [all …]
|
H A D | tsan_mman.cc | 88 if (thr->proc()) in ScopedGlobalProcessor() 105 ProcWire(gp->proc, thr); in ScopedGlobalProcessor() 111 if (thr->proc() != gp->proc) in ~ScopedGlobalProcessor() 113 ProcUnwire(gp->proc, thr); in ~ScopedGlobalProcessor() 151 OutputReport(thr, rep); in SignalUnsafeCall() 228 user_free(thr, pc, p); in user_realloc() 235 user_free(thr, pc, p); in user_realloc() 326 if (thr->nomalloc) { in internal_alloc() 335 if (thr->nomalloc) { in internal_free() 381 thr->clock.ResetCached(&thr->proc()->clock_cache); in __tsan_on_thread_idle() [all …]
|
/netbsd/external/gpl3/gcc/dist/libsanitizer/tsan/ |
H A D | tsan_rtl_mutex.cc | 31 : thr(thr) in Callback() 479 thr->clock.set(thr->fast_state.epoch()); in AcquireImpl() 480 thr->clock.acquire(&thr->proc()->clock_cache, c); in AcquireImpl() 487 thr->clock.set(thr->fast_state.epoch()); in ReleaseImpl() 488 thr->fast_synch_epoch = thr->fast_state.epoch(); in ReleaseImpl() 489 thr->clock.release(&thr->proc()->clock_cache, c); in ReleaseImpl() 496 thr->clock.set(thr->fast_state.epoch()); in ReleaseStoreImpl() 497 thr->fast_synch_epoch = thr->fast_state.epoch(); in ReleaseStoreImpl() 505 thr->clock.set(thr->fast_state.epoch()); in AcquireReleaseImpl() 506 thr->fast_synch_epoch = thr->fast_state.epoch(); in AcquireReleaseImpl() [all …]
|
H A D | tsan_rtl_thread.cc | 25 , thr() in ThreadContext() 52 thr = 0; in OnCreated() 89 thr = args->thr; in OnStarted() 98 thr->shadow_stack_pos = thr->shadow_stack; in OnStarted() 105 thr->shadow_stack_pos = thr->shadow_stack; in OnStarted() 113 TraceAddEvent(thr, thr->fast_state, EventTypeMop, 0); in OnStarted() 143 thr->clock.ResetCached(&thr->proc()->clock_cache); in OnFinished() 151 thr = 0; in OnFinished() 277 if (thr->stk_addr && thr->stk_size) in ThreadFinish() 278 DontNeedShadowFor(thr->stk_addr, thr->stk_size); in ThreadFinish() [all …]
|
H A D | tsan_fd.cc | 98 unref(thr, pc, d->sync); in init() 102 unref(thr, pc, s); in init() 106 unref(thr, pc, s); in init() 109 d->creation_tid = thr->tid; in init() 210 unref(thr, pc, d->sync); in FdClose() 237 init(thr, pc, rfd, ref(s)); in FdPipeCreate() 239 unref(thr, pc, s); in FdPipeCreate() 246 init(thr, pc, fd, allocsync(thr, pc)); in FdEventCreate() 253 init(thr, pc, fd, 0); in FdSignalCreate() 260 init(thr, pc, fd, 0); in FdInotifyCreate() [all …]
|
H A D | tsan_rtl.cc | 518 const int sz = thr->shadow_stack_end - thr->shadow_stack; in GrowShadowStack() 537 if (thr->shadow_stack_pos == thr->shadow_stack_end) in CurrentStackId() 544 StackTrace(thr->shadow_stack, thr->shadow_stack_pos - thr->shadow_stack)); in CurrentStackId() 878 (void)thr; in MemoryRangeSet() 953 TraceAddEvent(thr, thr->fast_state, EventTypeMop, pc); in MemoryRangeFreed() 986 DCHECK_GE(thr->shadow_stack_pos, thr->shadow_stack); in FuncEntry() 990 if (thr->shadow_stack_pos == thr->shadow_stack_end) in FuncEntry() 1006 DCHECK_GT(thr->shadow_stack_pos, thr->shadow_stack); in FuncExit() 1020 thr->mop_ignore_set.Add(CurrentStackId(thr, pc)); in ThreadIgnoreBegin() 1040 return thr->shadow_stack_pos - thr->shadow_stack; in __tsan_testonly_shadow_stack_current_size() [all …]
|
H A D | tsan_mman.cc | 86 if (thr->proc()) in ScopedGlobalProcessor() 103 ProcWire(gp->proc, thr); in ScopedGlobalProcessor() 109 if (thr->proc() != gp->proc) in ~ScopedGlobalProcessor() 111 ProcUnwire(gp->proc, thr); in ~ScopedGlobalProcessor() 149 OutputReport(thr, rep); in SignalUnsafeCall() 226 user_free(thr, pc, p); in user_realloc() 233 user_free(thr, pc, p); in user_realloc() 324 if (thr->nomalloc) { in internal_alloc() 333 if (thr->nomalloc) { in internal_free() 379 thr->clock.ResetCached(&thr->proc()->clock_cache); in __tsan_on_thread_idle() [all …]
|
/netbsd/external/gpl3/gcc.old/dist/libsanitizer/tsan/ |
H A D | tsan_rtl_mutex.cc | 31 : thr(thr) in Callback() 479 thr->clock.set(thr->fast_state.epoch()); in AcquireImpl() 480 thr->clock.acquire(&thr->proc()->clock_cache, c); in AcquireImpl() 487 thr->clock.set(thr->fast_state.epoch()); in ReleaseImpl() 488 thr->fast_synch_epoch = thr->fast_state.epoch(); in ReleaseImpl() 489 thr->clock.release(&thr->proc()->clock_cache, c); in ReleaseImpl() 496 thr->clock.set(thr->fast_state.epoch()); in ReleaseStoreImpl() 497 thr->fast_synch_epoch = thr->fast_state.epoch(); in ReleaseStoreImpl() 505 thr->clock.set(thr->fast_state.epoch()); in AcquireReleaseImpl() 506 thr->fast_synch_epoch = thr->fast_state.epoch(); in AcquireReleaseImpl() [all …]
|
H A D | tsan_rtl_thread.cc | 25 , thr() in ThreadContext() 52 thr = 0; in OnCreated() 89 thr = args->thr; in OnStarted() 98 thr->shadow_stack_pos = thr->shadow_stack; in OnStarted() 105 thr->shadow_stack_pos = thr->shadow_stack; in OnStarted() 113 TraceAddEvent(thr, thr->fast_state, EventTypeMop, 0); in OnStarted() 143 thr->clock.ResetCached(&thr->proc()->clock_cache); in OnFinished() 151 thr = 0; in OnFinished() 277 if (thr->stk_addr && thr->stk_size) in ThreadFinish() 278 DontNeedShadowFor(thr->stk_addr, thr->stk_size); in ThreadFinish() [all …]
|
H A D | tsan_fd.cc | 98 unref(thr, pc, d->sync); in init() 102 unref(thr, pc, s); in init() 106 unref(thr, pc, s); in init() 109 d->creation_tid = thr->tid; in init() 210 unref(thr, pc, d->sync); in FdClose() 237 init(thr, pc, rfd, ref(s)); in FdPipeCreate() 239 unref(thr, pc, s); in FdPipeCreate() 246 init(thr, pc, fd, allocsync(thr, pc)); in FdEventCreate() 253 init(thr, pc, fd, 0); in FdSignalCreate() 260 init(thr, pc, fd, 0); in FdInotifyCreate() [all …]
|
H A D | tsan_rtl.cc | 518 const int sz = thr->shadow_stack_end - thr->shadow_stack; in GrowShadowStack() 537 if (thr->shadow_stack_pos == thr->shadow_stack_end) in CurrentStackId() 544 StackTrace(thr->shadow_stack, thr->shadow_stack_pos - thr->shadow_stack)); in CurrentStackId() 878 (void)thr; in MemoryRangeSet() 953 TraceAddEvent(thr, thr->fast_state, EventTypeMop, pc); in MemoryRangeFreed() 986 DCHECK_GE(thr->shadow_stack_pos, thr->shadow_stack); in FuncEntry() 990 if (thr->shadow_stack_pos == thr->shadow_stack_end) in FuncEntry() 1006 DCHECK_GT(thr->shadow_stack_pos, thr->shadow_stack); in FuncExit() 1020 thr->mop_ignore_set.Add(CurrentStackId(thr, pc)); in ThreadIgnoreBegin() 1040 return thr->shadow_stack_pos - thr->shadow_stack; in __tsan_testonly_shadow_stack_current_size() [all …]
|
H A D | tsan_mman.cc | 86 if (thr->proc()) in ScopedGlobalProcessor() 103 ProcWire(gp->proc, thr); in ScopedGlobalProcessor() 109 if (thr->proc() != gp->proc) in ~ScopedGlobalProcessor() 111 ProcUnwire(gp->proc, thr); in ~ScopedGlobalProcessor() 149 OutputReport(thr, rep); in SignalUnsafeCall() 226 user_free(thr, pc, p); in user_realloc() 233 user_free(thr, pc, p); in user_realloc() 324 if (thr->nomalloc) { in internal_alloc() 333 if (thr->nomalloc) { in internal_free() 379 thr->clock.ResetCached(&thr->proc()->clock_cache); in __tsan_on_thread_idle() [all …]
|
/netbsd/external/public-domain/xz/dist/src/liblzma/common/ |
H A D | stream_encoder_mt.c | 228 thr->allocator, &thr->block_options); in worker_encode() 250 thr->progress_out = thr->outbuf->size; in worker_encode() 254 mythread_cond_wait(&thr->cond, &thr->mutex); in worker_encode() 278 thr->block_encoder.coder, thr->allocator, in worker_encode() 306 mythread_cond_wait(&thr->cond, &thr->mutex); in worker_encode() 318 thr->in, in_size, thr->outbuf->buf, in worker_encode() 366 mythread_cond_wait(&thr->cond, &thr->mutex); in worker_start() 402 thr->next = thr->coder->threads_free; in worker_start() 403 thr->coder->threads_free = thr; in worker_start() 414 lzma_free(thr->in, thr->allocator); in worker_start() [all …]
|
/netbsd/sys/external/bsd/compiler_rt/dist/lib/tsan/go/ |
H A D | tsan_go.cc | 137 internal_memset(thr, 0, sizeof(*thr)); in AllocGoroutine() 138 return thr; in AllocGoroutine() 146 Initialize(thr); in __tsan_init() 147 *procp = thr->proc1; in __tsan_init() 171 FuncExit(thr); in __tsan_read_pc() 183 FuncExit(thr); in __tsan_write_pc() 199 FuncExit(thr); in __tsan_func_exit() 204 if (thr && pc) in __tsan_malloc() 215 *pthr = thr; in __tsan_go_start() 221 ThreadFinish(thr); in __tsan_go_end() [all …]
|
/netbsd/external/gpl3/gcc.old/dist/libgomp/ |
H A D | oacc-cuda.c | 40 if (thr && thr->dev && thr->dev->openacc.cuda.get_current_device_func) in acc_get_current_cuda_device() 50 thr->prof_info = NULL; in acc_get_current_cuda_device() 51 thr->api_info = NULL; in acc_get_current_cuda_device() 64 if (thr && thr->dev && thr->dev->openacc.cuda.get_current_context_func) in acc_get_current_cuda_context() 74 thr->prof_info = NULL; in acc_get_current_cuda_context() 75 thr->api_info = NULL; in acc_get_current_cuda_context() 91 if (thr && thr->dev && thr->dev->openacc.cuda.get_stream_func) in acc_get_cuda_stream() 111 thr->api_info = NULL; in acc_get_cuda_stream() 128 thr = goacc_thread (); in acc_set_cuda_stream() 131 if (thr && thr->dev && thr->dev->openacc.cuda.set_stream_func) in acc_set_cuda_stream() [all …]
|
H A D | oacc-async.c | 40 if (!thr || !thr->dev) in get_goacc_thread() 43 return thr; in get_goacc_thread() 142 if (!thr || !thr->dev) in acc_async_test() 162 thr->prof_info = NULL; in acc_async_test() 163 thr->api_info = NULL; in acc_async_test() 190 thr->prof_info = NULL; in acc_async_test_all() 191 thr->api_info = NULL; in acc_async_test_all() 221 thr->api_info = NULL; in acc_wait() 278 thr->api_info = NULL; 300 thr->api_info = NULL; in acc_wait_all() [all …]
|
/netbsd/external/gpl3/gcc/dist/libgomp/ |
H A D | oacc-cuda.c | 40 if (thr && thr->dev && thr->dev->openacc.cuda.get_current_device_func) in acc_get_current_cuda_device() 50 thr->prof_info = NULL; in acc_get_current_cuda_device() 51 thr->api_info = NULL; in acc_get_current_cuda_device() 64 if (thr && thr->dev && thr->dev->openacc.cuda.get_current_context_func) in acc_get_current_cuda_context() 74 thr->prof_info = NULL; in acc_get_current_cuda_context() 75 thr->api_info = NULL; in acc_get_current_cuda_context() 91 if (thr && thr->dev && thr->dev->openacc.cuda.get_stream_func) in acc_get_cuda_stream() 111 thr->api_info = NULL; in acc_get_cuda_stream() 128 thr = goacc_thread (); in acc_set_cuda_stream() 131 if (thr && thr->dev && thr->dev->openacc.cuda.set_stream_func) in acc_set_cuda_stream() [all …]
|
H A D | oacc-async.c | 40 if (!thr || !thr->dev) in get_goacc_thread() 43 return thr; in get_goacc_thread() 142 if (!thr || !thr->dev) in acc_async_test() 162 thr->prof_info = NULL; in acc_async_test() 163 thr->api_info = NULL; in acc_async_test() 190 thr->prof_info = NULL; in acc_async_test_all() 191 thr->api_info = NULL; in acc_async_test_all() 221 thr->api_info = NULL; in acc_wait() 278 thr->api_info = NULL; 300 thr->api_info = NULL; in acc_wait_all() [all …]
|
H A D | team.c | 82 thr = &local_thr; in gomp_thread_start() 90 thr->ts = data->ts; in gomp_thread_start() 102 thr->ts.team->ordered_release[thr->ts.team_id] = &thr->release; in gomp_thread_start() 121 pool->threads[thr->ts.team_id] = thr; in gomp_thread_start() 137 thr->fn = NULL; in gomp_thread_start() 145 thr->task = NULL; in gomp_thread_start() 249 thr->task = NULL; in gomp_free_pool_helper() 306 if (thr->ts.level == 0 && __builtin_expect (thr->ts.team != NULL, 0)) in gomp_free_thread() 342 task = thr->task; in gomp_team_start() 359 ++thr->ts.level; in gomp_team_start() [all …]
|
/netbsd/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/unit/ |
H A D | tsan_mman_test.cc | 47 user_free(thr, pc, p); in TEST() 48 user_free(thr, pc, p2); in TEST() 59 user_free(thr, pc, p); in TEST() 106 user_free(thr, pc, p); in TEST() 132 user_free(thr, 0, p); in TEST() 146 user_free(thr, 0, p); in TEST() 150 user_free(thr, 0, p); in TEST() 155 user_free(thr, 0, p); in TEST() 167 user_free(thr, 0, p); in TEST() 186 user_free(thr, 0, p); in TEST() [all …]
|
/netbsd/external/bsd/unbound/dist/testcode/ |
H A D | checklocks.c | 281 if(!thr) { in checklock_init() 290 if(!thr) in checklock_init() 415 lock->next_held_lock[thr->num] = thr->holding_first; in finish_acquire_lock() 420 thr->holding_first->prev_held_lock[thr->num] = lock; in finish_acquire_lock() 668 fwrite(&thr->num, sizeof(thr->num), 1, thr->order_info) != 1 || in open_lockorder() 681 thr->num = *(int*)(thr->arg); in checklock_main() 686 thread_infos[thr->num] = thr; in checklock_main() 690 ret = thr->func(thr->arg); in checklock_main() 694 free(thr); in checklock_main() 742 if(!thr) in checklock_thrcreate() [all …]
|
/netbsd/sys/external/bsd/compiler_rt/dist/lib/tsan/dd/ |
H A D | dd_rtl.cc | 24 thr->ignore_interceptors = true; in CurrentStackTrace() 58 Callback::Callback(Thread *thr) in Callback() argument 59 : thr(thr) { in Callback() 60 lt = thr->dd_lt; in Callback() 61 pt = thr->dd_pt; in Callback() 100 void ThreadInit(Thread *thr) { in ThreadInit() argument 113 if (thr->ignore_interceptors) in MutexBeforeLock() 115 Callback cb(thr); in MutexBeforeLock() 128 Callback cb(thr); in MutexAfterLock() 141 Callback cb(thr); in MutexBeforeUnlock() [all …]
|