/freebsd-11-stable/sys/kern/ |
H A D | subr_kdb.c | 550 kdb_thr_ctx(struct thread *thr) argument 556 if (thr == curthread) 561 if (pc->pc_curthread == thr && 566 return (thr->td_pcb); 573 struct thread *thr; local 578 thr = FIRST_THREAD_IN_PROC(p); 579 if (thr != NULL) 580 return (thr); 604 struct thread *thr; local 606 thr 613 kdb_thr_next(struct thread *thr) argument 630 kdb_thr_select(struct thread *thr) argument [all...] |
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_interceptors_libdispatch.cpp | 77 static block_context_t *AllocContext(ThreadState *thr, uptr pc, argument 81 (block_context_t *)user_alloc_internal(thr, pc, sizeof(block_context_t)); 99 static void dispatch_sync_pre_execute(ThreadState *thr, uptr pc, argument 102 Acquire(thr, pc, submit_sync); 107 if (serial_sync) Acquire(thr, pc, serial_sync); 108 if (serial_task && concurrent_sync) Acquire(thr, pc, concurrent_sync); 114 static void dispatch_sync_post_execute(ThreadState *thr, uptr pc, argument 117 if (context->submitted_synchronously) Release(thr, pc, submit_sync); 122 if (serial_task && serial_sync) Release(thr, pc, serial_sync); 123 if (!serial_task && concurrent_sync) Release(thr, p [all...] |
H A D | tsan_rtl_report.cpp | 236 ThreadState *thr = tctx->thr; 237 CHECK(thr); 238 return ((addr >= thr->stk_addr && addr < thr->stk_addr + thr->stk_size) || 239 (addr >= thr->tls_addr && addr < thr->tls_addr + thr->tls_size)); 249 ThreadState *thr 442 HandleRacyStacks(ThreadState *thr, VarSizeStackTrace traces[2], uptr addr_min, uptr addr_max) argument 488 AddRacyStacks(ThreadState *thr, VarSizeStackTrace traces[2], uptr addr_min, uptr addr_max) argument 503 OutputReport(ThreadState *thr, const ScopedReport &srep) argument 576 RaceBetweenAtomicAndFree(ThreadState *thr) argument 589 ReportRace(ThreadState *thr) argument 717 PrintCurrentStack(ThreadState *thr, uptr pc) argument [all...] |
H A D | tsan_interceptors_mac.cpp | 196 Acquire(thr, pc, (uptr)lock); 207 Acquire(thr, pc, (uptr)lock); 217 Release(thr, pc, (uptr)lock); 228 Acquire(thr, pc, (uptr)lock); 239 Acquire(thr, pc, (uptr)lock); 249 Release(thr, pc, (uptr)lock); 261 Acquire(thr, pc, (uptr)lock); 271 Acquire(thr, pc, (uptr)lock); 281 Acquire(thr, pc, (uptr)lock); 290 Release(thr, p 367 GetOrCreateSyncAddress(uptr addr, ThreadState *thr, uptr pc) argument 383 SyncAddressForObjCObject(id obj, ThreadState *thr, uptr pc) argument 420 ThreadState *thr = cur_thread(); local [all...] |
H A D | tsan_external.cpp | 45 void InsertShadowStackFrameForTag(ThreadState *thr, uptr tag) { argument 46 FuncEntry(thr, (uptr)®istered_tags[tag]); 62 ThreadState *thr = cur_thread(); local 63 if (caller_pc) FuncEntry(thr, (uptr)caller_pc); 64 InsertShadowStackFrameForTag(thr, (uptr)tag); 67 access(thr, CALLERPC, (uptr)addr, kSizeLog1); 69 FuncExit(thr); 70 if (caller_pc) FuncExit(thr);
|
H A D | tsan_interface_inl.h | 87 ThreadState *thr = cur_thread(); local 88 thr->is_vptr_access = true; 89 MemoryWrite(thr, CALLERPC, (uptr)vptr_p, kSizeLog8); 90 thr->is_vptr_access = false; 96 ThreadState *thr = cur_thread(); local 97 thr->is_vptr_access = true; 98 MemoryRead(thr, CALLERPC, (uptr)vptr_p, kSizeLog8); 99 thr->is_vptr_access = false;
|
H A D | tsan_sync.cpp | 19 void DDMutexInit(ThreadState *thr, uptr pc, SyncVar *s); 26 void SyncVar::Init(ThreadState *thr, uptr pc, uptr addr, u64 uid) { argument 33 creation_stack_id = CurrentStackId(thr, pc); 35 DDMutexInit(thr, pc, this); 61 void MetaMap::AllocBlock(ThreadState *thr, uptr pc, uptr p, uptr sz) { argument 62 u32 idx = block_alloc_.Alloc(&thr->proc()->block_cache); 66 b->tid = thr->tid; 67 b->stk = CurrentStackId(thr, pc); 196 SyncVar* MetaMap::GetOrCreateAndLock(ThreadState *thr, uptr pc, argument 198 return GetAndLock(thr, p 205 GetAndLock(ThreadState *thr, uptr pc, uptr addr, bool write_lock, bool create) argument [all...] |
H A D | tsan_platform_mac.cpp | 95 void set_cur_thread(ThreadState *thr) { argument 96 *cur_thread_location() = thr; 213 ThreadState *thr = cur_thread(); local 215 ProcWire(proc, thr); 219 ThreadStart(thr, tid, GetTid(), ThreadType::Worker); 223 ThreadState *thr = cur_thread(); local 224 if (thr->tctx) { 281 void ImitateTlsWrite(ThreadState *thr, uptr tls_addr, uptr tls_size) { argument 287 MemoryRangeImitateWrite(thr, /*pc=*/2, tls_addr, tls_size); 295 MemoryRangeImitateWrite(thr, /*p [all...] |
H A D | tsan_platform_linux.cpp | 427 void ImitateTlsWrite(ThreadState *thr, uptr tls_addr, uptr tls_size) { argument 428 // Check that the thr object is in tls; 429 const uptr thr_beg = (uptr)thr; 430 const uptr thr_end = (uptr)thr + sizeof(*thr); 435 // Since the thr object is huge, skip it. 436 MemoryRangeImitateWrite(thr, /*pc=*/2, tls_addr, thr_beg - tls_addr); 437 MemoryRangeImitateWrite(thr, /*pc=*/2, thr_end, 467 ThreadState* thr = reinterpret_cast<ThreadState*>(*get_android_tls_ptr()); local 468 if (thr 494 set_cur_thread(ThreadState *thr) argument 503 ThreadState* thr = reinterpret_cast<ThreadState*>(*get_android_tls_ptr()); local [all...] |
H A D | tsan_sync.h | 70 void Init(ThreadState *thr, uptr pc, uptr addr, u64 uid); 115 void AllocBlock(ThreadState *thr, uptr pc, uptr p, uptr sz); 121 SyncVar* GetOrCreateAndLock(ThreadState *thr, uptr pc, 139 SyncVar* GetAndLock(ThreadState *thr, uptr pc, uptr addr, bool write_lock,
|
H A D | tsan_interceptors_mach_vm.cpp | 39 MemoryRangeImitateWriteOrResetRange(thr, pc, *address, size); 48 UnmapShadow(thr, address, size);
|
H A D | tsan_mutex.h | 86 void CheckNoLocks(ThreadState *thr);
|
H A D | tsan_new_delete.cpp | 37 p = user_alloc(thr, pc, size); \ 39 GET_STACK_TRACE_FATAL(thr, pc); \ 52 p = user_memalign(thr, pc, (uptr)align, size); \ 54 GET_STACK_TRACE_FATAL(thr, pc); \ 121 user_free(thr, pc, ptr);
|
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/net/ |
H A D | h_nsd_recurse.c | 101 pthread_t thr; local 104 assert(pthread_create(&thr, NULL, thrfunc, NULL) == 0); 106 assert(pthread_join(thr, &threval) == 0);
|
/freebsd-11-stable/gnu/usr.bin/gdb/kgdb/ |
H A D | trgt.c | 302 struct kthr *thr; local 313 thr = kgdb_thr_lookup_pid((int)addr); 314 if (thr == NULL) 317 thr = kgdb_thr_lookup_paddr(addr); 318 if (thr == NULL) 321 kgdb_switch_to_thread(thr->tid); 328 struct kthr *thr; local 336 thr = kgdb_thr_lookup_taddr(addr); 337 if (thr == NULL) 339 addr = thr [all...] |
/freebsd-11-stable/sys/riscv/riscv/ |
H A D | db_trace.c | 106 db_trace_thread(struct thread *thr, int count) argument 111 if (thr != curthread) { 112 ctx = kdb_thr_ctx(thr);
|
/freebsd-11-stable/sys/arm64/arm64/ |
H A D | db_trace.c | 104 db_trace_thread(struct thread *thr, int count) argument 109 if (thr != curthread) { 110 ctx = kdb_thr_ctx(thr);
|
/freebsd-11-stable/contrib/unbound/util/ |
H A D | locks.h | 157 #define PTHREADCREATE(thr, stackrequired, func, arg) do {\ 164 LOCKRET(pthread_create(thr, &attr, func, arg)); \ 167 } else {LOCKRET(pthread_create(thr, NULL, func, arg));} \ 170 #define ub_thread_create(thr, func, arg) PTHREADCREATE(thr, PTHREADSTACKSIZE, func, arg) 210 #define ub_thread_create(thr, func, arg) LOCKRET(thr_create(NULL, NULL, func, arg, NULL, thr)) 248 void ub_thread_create(ub_thread_type* thr, void* (*func)(void*), void* arg); 250 void ub_thread_join(ub_thread_type thr); 286 #define ub_thread_create(thr, fun [all...] |
/freebsd-11-stable/contrib/gcclibs/libmudflap/ |
H A D | mf-hooks3.c | 74 DECLARE(int, pthread_create, pthread_t *thr, const pthread_attr_t *attr, 265 __mf_0fn_pthread_create (pthread_t *thr, const pthread_attr_t *attr, argument 274 WRAPPER(int, pthread_create, pthread_t *thr, const pthread_attr_t *attr, argument 287 return CALL_REAL (pthread_create, thr, attr, __mf_pthread_spawner, si);
|
/freebsd-11-stable/gnu/usr.bin/gdb/gdbserver/ |
H A D | fbsd-low.h | 67 #define get_thread_process(thr) (get_process (inferior_target_data (thr)))
|
/freebsd-11-stable/lib/libthread_db/ |
H A D | libpthread_db.h | 47 psaddr_t thr; member in union:pt_map::__anon4725
|
/freebsd-11-stable/contrib/unbound/smallapp/ |
H A D | worker_cb.c | 222 int thr; member in struct:order_id 231 if(o1->thr < o2->thr) return -1; 232 if(o1->thr > o2->thr) return 1;
|
/freebsd-11-stable/sys/arm/arm/ |
H A D | db_trace.c | 154 db_trace_thread(struct thread *thr, int count) argument 159 if (thr != curthread) { 160 ctx = kdb_thr_ctx(thr);
|
/freebsd-11-stable/contrib/ntp/sntp/libevent/ |
H A D | evthread_pthread.c | 89 pthread_t thr; member in union:__anon4932 99 r.thr = pthread_self();
|
/freebsd-11-stable/sys/gdb/ |
H A D | gdb_main.c | 178 struct thread *thr; local 185 thr = kdb_thr_lookup(tid); 186 if (thr == NULL) { 190 kdb_thr_select(thr);
|