Searched refs:thr (Results 1 - 25 of 112) sorted by relevance

12345

/freebsd-11-stable/contrib/gcclibs/libgomp/
H A Dbarrier.c36 struct gomp_thread *thr = gomp_thread (); local
37 struct gomp_team *team = thr->ts.team;
H A Dsingle.c54 struct gomp_thread *thr = gomp_thread (); local
60 gomp_mutex_unlock (&thr->ts.work_share->lock);
66 gomp_barrier_wait (&thr->ts.team->barrier);
68 ret = thr->ts.work_share->copyprivate;
81 struct gomp_thread *thr = gomp_thread (); local
82 struct gomp_team *team = thr->ts.team;
86 thr->ts.work_share->copyprivate = data;
H A Dordered.c40 struct gomp_thread *thr = gomp_thread (); local
41 struct gomp_team *team = thr->ts.team;
42 struct gomp_work_share *ws = thr->ts.work_share;
52 ws->ordered_team_ids[index] = thr->ts.team_id;
58 gomp_sem_post (team->ordered_release[thr->ts.team_id]);
71 struct gomp_thread *thr = gomp_thread (); local
72 struct gomp_team *team = thr->ts.team;
73 struct gomp_work_share *ws = thr->ts.work_share;
106 struct gomp_thread *thr = gomp_thread (); local
107 struct gomp_team *team = thr
154 struct gomp_thread *thr = gomp_thread (); local
172 struct gomp_thread *thr = gomp_thread (); local
196 struct gomp_thread *thr = gomp_thread (); local
[all...]
H A Dteam.c73 struct gomp_thread *thr; local
78 thr = &gomp_tls_data;
81 thr = &local_thr;
82 pthread_setspecific (gomp_tls_key, thr);
84 gomp_sem_init (&thr->release, 0);
89 thr->ts = data->ts;
91 thr->ts.team->ordered_release[thr->ts.team_id] = &thr->release;
95 gomp_barrier_wait (&thr
182 struct gomp_thread *thr, *nthr; local
327 struct gomp_thread *thr = gomp_thread (); local
343 struct gomp_thread *thr; local
[all...]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_fd.h41 void FdAcquire(ThreadState *thr, uptr pc, int fd);
42 void FdRelease(ThreadState *thr, uptr pc, int fd);
43 void FdAccess(ThreadState *thr, uptr pc, int fd);
44 void FdClose(ThreadState *thr, uptr pc, int fd, bool write = true);
45 void FdFileCreate(ThreadState *thr, uptr pc, int fd);
46 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd, bool write);
47 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd);
48 void FdEventCreate(ThreadState *thr, uptr pc, int fd);
49 void FdSignalCreate(ThreadState *thr, uptr pc, int fd);
50 void FdInotifyCreate(ThreadState *thr, upt
[all...]
H A Dtsan_rtl_proc.cpp24 proc->thr = nullptr;
34 CHECK_EQ(proc->thr, nullptr);
46 void ProcWire(Processor *proc, ThreadState *thr) { argument
47 CHECK_EQ(thr->proc1, nullptr);
48 CHECK_EQ(proc->thr, nullptr);
49 thr->proc1 = proc;
50 proc->thr = thr;
53 void ProcUnwire(Processor *proc, ThreadState *thr) { argument
54 CHECK_EQ(thr
[all...]
H A Dtsan_rtl_mutex.cpp25 void ReportDeadlock(ThreadState *thr, uptr pc, DDReport *r);
28 ThreadState *thr; member in struct:__tsan::Callback
31 Callback(ThreadState *thr, uptr pc) argument
32 : thr(thr)
34 DDCallback::pt = thr->proc()->dd_pt;
35 DDCallback::lt = thr->dd_lt;
38 u32 Unwind() override { return CurrentStackId(thr, pc); }
39 int UniqueTid() override { return thr->unique_id; }
42 void DDMutexInit(ThreadState *thr, upt argument
48 ReportMutexMisuse(ThreadState *thr, uptr pc, ReportType typ, uptr addr, u64 mid) argument
64 MutexCreate(ThreadState *thr, uptr pc, uptr addr, u32 flagz) argument
80 MutexDestroy(ThreadState *thr, uptr pc, uptr addr, u32 flagz) argument
142 MutexPreLock(ThreadState *thr, uptr pc, uptr addr, u32 flagz) argument
158 MutexPostLock(ThreadState *thr, uptr pc, uptr addr, u32 flagz, int rec) argument
213 MutexUnlock(ThreadState *thr, uptr pc, uptr addr, u32 flagz) argument
256 MutexPreReadLock(ThreadState *thr, uptr pc, uptr addr, u32 flagz) argument
268 MutexPostReadLock(ThreadState *thr, uptr pc, uptr addr, u32 flagz) argument
308 MutexReadUnlock(ThreadState *thr, uptr pc, uptr addr) argument
340 MutexReadOrWriteUnlock(ThreadState *thr, uptr pc, uptr addr) argument
387 MutexRepair(ThreadState *thr, uptr pc, uptr addr) argument
395 MutexInvalidAccess(ThreadState *thr, uptr pc, uptr addr) argument
403 Acquire(ThreadState *thr, uptr pc, uptr addr) argument
415 ThreadState *thr = reinterpret_cast<ThreadState*>(arg); local
423 AcquireGlobal(ThreadState *thr, uptr pc) argument
432 Release(ThreadState *thr, uptr pc, uptr addr) argument
444 ReleaseStore(ThreadState *thr, uptr pc, uptr addr) argument
458 ThreadState *thr = reinterpret_cast<ThreadState*>(arg); local
466 AfterSleep(ThreadState *thr, uptr pc) argument
477 AcquireImpl(ThreadState *thr, uptr pc, SyncClock *c) argument
485 ReleaseImpl(ThreadState *thr, uptr pc, SyncClock *c) argument
494 ReleaseStoreImpl(ThreadState *thr, uptr pc, SyncClock *c) argument
503 AcquireReleaseImpl(ThreadState *thr, uptr pc, SyncClock *c) argument
513 ReportDeadlock(ThreadState *thr, uptr pc, DDReport *r) argument
[all...]
H A Dtsan_rtl_thread.cpp26 , thr()
48 ThreadState *thr; member in struct:__tsan::OnCreatedArgs
53 thr = 0;
57 if (!args->thr) // GCD workers don't have a parent thread.
59 args->thr->fast_state.IncrementEpoch();
61 TraceAddEvent(args->thr, args->thr->fast_state, EventTypeMop, 0);
62 ReleaseImpl(args->thr, 0, &sync);
63 creation_stack_id = CurrentStackId(args->thr, args->pc);
65 StatInc(args->thr, StatThreadMaxTi
81 ThreadState *thr; member in struct:__tsan::OnStartedArgs
195 ThreadCheckIgnore(ThreadState *thr) argument
204 ThreadCheckIgnore(ThreadState *thr) argument
207 ThreadFinalize(ThreadState *thr) argument
225 ThreadCount(ThreadState *thr) argument
231 ThreadCreate(ThreadState *thr, uptr pc, uptr uid, bool detached) argument
242 ThreadStart(ThreadState *thr, int tid, tid_t os_id, ThreadType thread_type) argument
277 ThreadFinish(ThreadState *thr) argument
297 ThreadTid(ThreadState *thr, uptr pc, uptr uid) argument
303 ThreadJoin(ThreadState *thr, uptr pc, int tid) argument
310 ThreadDetach(ThreadState *thr, uptr pc, int tid) argument
316 ThreadNotJoined(ThreadState *thr, uptr pc, int tid, uptr uid) argument
322 ThreadSetName(ThreadState *thr, const char *name) argument
326 MemoryAccessRange(ThreadState *thr, uptr pc, uptr addr, uptr size, bool is_write) argument
416 FiberCreate(ThreadState *thr, uptr pc, unsigned flags) argument
427 FiberDestroy(ThreadState *thr, uptr pc, ThreadState *fiber) argument
434 FiberSwitch(ThreadState *thr, uptr pc, ThreadState *fiber, unsigned flags) argument
[all...]
H A Dtsan_fd.cpp49 static FdSync *allocsync(ThreadState *thr, uptr pc) { argument
50 FdSync *s = (FdSync*)user_alloc_internal(thr, pc, sizeof(FdSync),
62 static void unref(ThreadState *thr, uptr pc, FdSync *s) { argument
68 user_free(thr, pc, s, false);
73 static FdDesc *fddesc(ThreadState *thr, uptr pc, int fd) { argument
81 void *p = user_alloc_internal(thr, pc, size, kDefaultAlignment, false);
83 MemoryResetRange(thr, (uptr)&fddesc, (uptr)p, size);
87 user_free(thr, pc, p, false);
94 static void init(ThreadState *thr, uptr pc, int fd, FdSync *s, argument
96 FdDesc *d = fddesc(thr, p
128 FdOnFork(ThreadState *thr, uptr pc) argument
160 FdAcquire(ThreadState *thr, uptr pc, int fd) argument
171 FdRelease(ThreadState *thr, uptr pc, int fd) argument
182 FdAccess(ThreadState *thr, uptr pc, int fd) argument
190 FdClose(ThreadState *thr, uptr pc, int fd, bool write) argument
218 FdFileCreate(ThreadState *thr, uptr pc, int fd) argument
225 FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd, bool write) argument
236 FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd) argument
244 FdEventCreate(ThreadState *thr, uptr pc, int fd) argument
251 FdSignalCreate(ThreadState *thr, uptr pc, int fd) argument
258 FdInotifyCreate(ThreadState *thr, uptr pc, int fd) argument
265 FdPollCreate(ThreadState *thr, uptr pc, int fd) argument
272 FdSocketCreate(ThreadState *thr, uptr pc, int fd) argument
280 FdSocketAccept(ThreadState *thr, uptr pc, int fd, int newfd) argument
289 FdSocketConnecting(ThreadState *thr, uptr pc, int fd) argument
297 FdSocketConnect(ThreadState *thr, uptr pc, int fd) argument
[all...]
H A Dtsan_update_shadow_word_inl.h16 StatInc(thr, StatShadowProcessed);
21 StatInc(thr, StatShadowZero);
30 StatInc(thr, StatShadowSameSize);
33 StatInc(thr, StatShadowSameThread);
40 StatInc(thr, StatShadowAnotherThread);
41 if (HappensBefore(old, thr)) {
54 StatInc(thr, StatShadowIntersect);
56 StatInc(thr, StatShadowSameThread);
59 StatInc(thr, StatShadowAnotherThread);
62 if (LIKELY(HappensBefore(old, thr)))
[all...]
H A Dtsan_mman.cpp86 ThreadState *thr = cur_thread(); local
87 if (thr->proc())
104 ProcWire(gp->proc, thr);
109 ThreadState *thr = cur_thread(); local
110 if (thr->proc() != gp->proc)
112 ProcUnwire(gp->proc, thr);
146 static void SignalUnsafeCall(ThreadState *thr, uptr pc) { argument
147 if (atomic_load_relaxed(&thr->in_signal_handler) == 0 ||
151 ObtainCurrentStack(thr, pc, &stack);
157 OutputReport(thr, re
161 user_alloc_internal(ThreadState *thr, uptr pc, uptr sz, uptr align, bool signal) argument
187 user_free(ThreadState *thr, uptr pc, void *p, bool signal) argument
196 user_alloc(ThreadState *thr, uptr pc, uptr sz) argument
200 user_calloc(ThreadState *thr, uptr pc, uptr size, uptr n) argument
213 user_reallocarray(ThreadState *thr, uptr pc, void *p, uptr size, uptr n) argument
223 OnUserAlloc(ThreadState *thr, uptr pc, uptr p, uptr sz, bool write) argument
232 OnUserFree(ThreadState *thr, uptr pc, uptr p, bool write) argument
240 user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz) argument
258 user_memalign(ThreadState *thr, uptr pc, uptr align, uptr sz) argument
269 user_posix_memalign(ThreadState *thr, uptr pc, void **memptr, uptr align, uptr sz) argument
286 user_aligned_alloc(ThreadState *thr, uptr pc, uptr align, uptr sz) argument
297 user_valloc(ThreadState *thr, uptr pc, uptr sz) argument
301 user_pvalloc(ThreadState *thr, uptr pc, uptr sz) argument
327 ThreadState *thr = cur_thread(); local
335 ThreadState *thr = cur_thread(); local
343 ThreadState *thr = cur_thread(); local
352 ThreadState *thr = cur_thread(); local
398 ThreadState *thr = cur_thread(); local
[all...]
H A Dtsan_rtl.cpp243 void UnmapShadow(ThreadState *thr, uptr addr, uptr size) { argument
247 ctx->metamap.ResetRange(thr->proc(), addr, size);
350 void Initialize(ThreadState *thr) { argument
382 ProcWire(proc, thr);
405 int tid = ThreadCreate(thr, 0, 0, true);
407 ThreadStart(thr, tid, GetTid(), ThreadType::Regular);
442 int Finalize(ThreadState *thr) { argument
447 if (flags()->atexit_sleep_ms > 0 && ThreadCount(thr) > 1)
459 ThreadFinalize(thr);
486 StatAggregate(ctx->stat, thr
494 ForkBefore(ThreadState *thr, uptr pc) argument
499 ForkParentAfter(ThreadState *thr, uptr pc) argument
504 ForkChildAfter(ThreadState *thr, uptr pc) argument
528 GrowShadowStack(ThreadState *thr) argument
541 CurrentStackId(ThreadState *thr, uptr pc) argument
561 TraceSwitch(ThreadState *thr) argument
581 TraceTopPC(ThreadState *thr) argument
623 HandleRace(ThreadState *thr, u64 *shadow_mem, Shadow cur, Shadow old) argument
635 HappensBefore(Shadow old, ThreadState *thr) argument
640 MemoryAccessImpl1(ThreadState *thr, uptr addr, int kAccessSizeLog, bool kAccessIsWrite, bool kIsAtomic, u64 *shadow_mem, Shadow cur) argument
709 UnalignedMemoryAccess(ThreadState *thr, uptr pc, uptr addr, int size, bool kAccessIsWrite, bool kIsAtomic) argument
818 MemoryAccess(ThreadState *thr, uptr pc, uptr addr, int kAccessSizeLog, bool kAccessIsWrite, bool kIsAtomic) argument
884 MemoryAccessImpl(ThreadState *thr, uptr addr, int kAccessSizeLog, bool kAccessIsWrite, bool kIsAtomic, u64 *shadow_mem, Shadow cur) argument
900 MemoryRangeSet(ThreadState *thr, uptr pc, uptr addr, uptr size, u64 val) argument
961 MemoryResetRange(ThreadState *thr, uptr pc, uptr addr, uptr size) argument
965 MemoryRangeFreed(ThreadState *thr, uptr pc, uptr addr, uptr size) argument
987 MemoryRangeImitateWrite(ThreadState *thr, uptr pc, uptr addr, uptr size) argument
999 MemoryRangeImitateWriteOrResetRange(ThreadState *thr, uptr pc, uptr addr, uptr size) argument
1008 FuncEntry(ThreadState *thr, uptr pc) argument
1030 FuncExit(ThreadState *thr) argument
1045 ThreadIgnoreBegin(ThreadState *thr, uptr pc, bool save_stack) argument
1056 ThreadIgnoreEnd(ThreadState *thr, uptr pc) argument
1071 ThreadState *thr = cur_thread(); local
1076 ThreadIgnoreSyncBegin(ThreadState *thr, uptr pc, bool save_stack) argument
1086 ThreadIgnoreSyncEnd(ThreadState *thr, uptr pc) argument
[all...]
H A Dtsan_mman.h29 void *user_alloc_internal(ThreadState *thr, uptr pc, uptr sz,
32 void user_free(ThreadState *thr, uptr pc, void *p, bool signal = true);
34 void *user_alloc(ThreadState *thr, uptr pc, uptr sz);
35 void *user_calloc(ThreadState *thr, uptr pc, uptr sz, uptr n);
36 void *user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz);
37 void *user_reallocarray(ThreadState *thr, uptr pc, void *p, uptr sz, uptr n);
38 void *user_memalign(ThreadState *thr, uptr pc, uptr align, uptr sz);
39 int user_posix_memalign(ThreadState *thr, uptr pc, void **memptr, uptr align,
41 void *user_aligned_alloc(ThreadState *thr, uptr pc, uptr align, uptr sz);
42 void *user_valloc(ThreadState *thr, upt
[all...]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/tsan/dd/
H A Ddd_rtl.cpp21 static u32 CurrentStackTrace(Thread *thr, uptr skip) { argument
23 thr->ignore_interceptors = true;
25 thr->ignore_interceptors = false;
31 static void PrintStackTrace(Thread *thr, u32 stk) { argument
33 thr->ignore_interceptors = true;
35 thr->ignore_interceptors = false;
38 static void ReportDeadlock(Thread *thr, DDReport *rep) { argument
47 PrintStackTrace(thr, rep->loop[i].stk[1]);
51 PrintStackTrace(thr, rep->loop[i].stk[0]);
57 Callback::Callback(Thread *thr) argument
99 ThreadInit(Thread *thr) argument
106 ThreadDestroy(Thread *thr) argument
111 MutexBeforeLock(Thread *thr, uptr m, bool writelock) argument
124 MutexAfterLock(Thread *thr, uptr m, bool writelock, bool trylock) argument
137 MutexBeforeUnlock(Thread *thr, uptr m, bool writelock) argument
148 MutexDestroy(Thread *thr, uptr m) argument
[all...]
H A Ddd_rtl.h34 Thread *thr; member in struct:__dsan::Callback
36 Callback(Thread *thr);
57 void ThreadInit(Thread *thr);
58 void ThreadDestroy(Thread *thr);
60 void MutexBeforeLock(Thread *thr, uptr m, bool writelock);
61 void MutexAfterLock(Thread *thr, uptr m, bool writelock, bool trylock);
62 void MutexBeforeUnlock(Thread *thr, uptr m, bool writelock);
63 void MutexDestroy(Thread *thr, uptr m);
/freebsd-11-stable/lib/libthr/arch/aarch64/include/
H A Dpthread_tls.h37 _get_static_tls_base(struct pthread *thr, size_t offset) argument
41 tlsbase = (uintptr_t)thr->tcb;
/freebsd-11-stable/lib/libthr/arch/amd64/include/
H A Dpthread_tls.h37 _get_static_tls_base(struct pthread *thr, size_t offset) argument
41 tlsbase = (uintptr_t)thr->tcb;
/freebsd-11-stable/lib/libthr/arch/arm/include/
H A Dpthread_tls.h37 _get_static_tls_base(struct pthread *thr, size_t offset) argument
41 tlsbase = (uintptr_t)thr->tcb;
/freebsd-11-stable/lib/libthr/arch/i386/include/
H A Dpthread_tls.h37 _get_static_tls_base(struct pthread *thr, size_t offset) argument
41 tlsbase = (uintptr_t)thr->tcb;
/freebsd-11-stable/lib/libthr/arch/mips/include/
H A Dpthread_tls.h37 _get_static_tls_base(struct pthread *thr, size_t offset) argument
41 tlsbase = (uintptr_t)thr->tcb;
/freebsd-11-stable/lib/libthr/arch/powerpc/include/
H A Dpthread_tls.h37 _get_static_tls_base(struct pthread *thr, size_t offset) argument
41 tlsbase = (uintptr_t)thr->tcb;
/freebsd-11-stable/lib/libthr/arch/riscv/include/
H A Dpthread_tls.h37 _get_static_tls_base(struct pthread *thr, size_t offset) argument
41 tlsbase = (uintptr_t)thr->tcb;
/freebsd-11-stable/lib/libthr/arch/sparc64/include/
H A Dpthread_tls.h37 _get_static_tls_base(struct pthread *thr, size_t offset) argument
41 tlsbase = (uintptr_t)thr->tcb;
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/tsan/go/
H A Dtsan_go.cpp145 ThreadState *thr = (ThreadState*)internal_alloc(MBlockThreadContex, local
147 internal_memset(thr, 0, sizeof(*thr));
148 return thr;
154 ThreadState *thr = AllocGoroutine(); local
155 main_thr = *thrp = thr;
156 Initialize(thr);
157 *procp = thr->proc1;
163 ThreadState *thr = main_thr; local
164 int res = Finalize(thr);
172 __tsan_read(ThreadState *thr, void *addr, void *pc) argument
176 __tsan_read_pc(ThreadState *thr, void *addr, uptr callpc, uptr pc) argument
184 __tsan_write(ThreadState *thr, void *addr, void *pc) argument
188 __tsan_write_pc(ThreadState *thr, void *addr, uptr callpc, uptr pc) argument
196 __tsan_read_range(ThreadState *thr, void *addr, uptr size, uptr pc) argument
200 __tsan_write_range(ThreadState *thr, void *addr, uptr size, uptr pc) argument
204 __tsan_func_enter(ThreadState *thr, void *pc) argument
208 __tsan_func_exit(ThreadState *thr) argument
212 __tsan_malloc(ThreadState *thr, uptr pc, uptr p, uptr sz) argument
224 ThreadState *thr = AllocGoroutine(); local
230 __tsan_go_end(ThreadState *thr) argument
243 __tsan_acquire(ThreadState *thr, void *addr) argument
247 __tsan_release(ThreadState *thr, void *addr) argument
251 __tsan_release_merge(ThreadState *thr, void *addr) argument
255 __tsan_finalizer_goroutine(ThreadState *thr) argument
259 __tsan_mutex_before_lock(ThreadState *thr, uptr addr, uptr write) argument
266 __tsan_mutex_after_lock(ThreadState *thr, uptr addr, uptr write) argument
273 __tsan_mutex_before_unlock(ThreadState *thr, uptr addr, uptr write) argument
280 __tsan_go_ignore_sync_begin(ThreadState *thr) argument
284 __tsan_go_ignore_sync_end(ThreadState *thr) argument
[all...]
/freebsd-11-stable/contrib/xz/src/liblzma/common/
H A Dstream_encoder_mt.c163 worker_thread *thr; member in struct:lzma_stream_coder_s
182 worker_error(worker_thread *thr, lzma_ret ret) argument
187 mythread_sync(thr->coder->mutex) {
188 if (thr->coder->thread_error == LZMA_OK)
189 thr->coder->thread_error = ret;
191 mythread_cond_signal(&thr->coder->cond);
199 worker_encode(worker_thread *thr, worker_state state) argument
201 assert(thr->progress_in == 0);
202 assert(thr->progress_out == 0);
205 thr
348 worker_thread *thr = thr_ptr; local
475 worker_thread *thr = &coder->threads[coder->threads_initialized]; local
[all...]

Completed in 422 milliseconds

12345