HomeSort by: relevance | last modified time | path
    Searched refs:thr (Results 1 - 25 of 65) sorted by relevancy

1 2 3

  /src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/
tsan_fd.h 42 void FdAcquire(ThreadState *thr, uptr pc, int fd);
43 void FdRelease(ThreadState *thr, uptr pc, int fd);
44 void FdAccess(ThreadState *thr, uptr pc, int fd);
45 void FdClose(ThreadState *thr, uptr pc, int fd, bool write = true);
46 void FdFileCreate(ThreadState *thr, uptr pc, int fd);
47 void FdDup(ThreadState *thr, uptr pc, int oldfd, int newfd, bool write);
48 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd);
49 void FdEventCreate(ThreadState *thr, uptr pc, int fd);
50 void FdSignalCreate(ThreadState *thr, uptr pc, int fd);
51 void FdInotifyCreate(ThreadState *thr, uptr pc, int fd)
    [all...]
tsan_rtl_thread.cc 27 , thr()
49 ThreadState *thr; member in struct:__tsan::OnCreatedArgs
54 thr = 0;
58 if (!args->thr) // GCD workers don't have a parent thread.
60 args->thr->fast_state.IncrementEpoch();
62 TraceAddEvent(args->thr, args->thr->fast_state, EventTypeMop, 0);
63 ReleaseImpl(args->thr, 0, &sync);
64 creation_stack_id = CurrentStackId(args->thr, args->pc);
66 StatInc(args->thr, StatThreadMaxTid)
82 ThreadState *thr; member in struct:__tsan::OnStartedArgs
    [all...]
tsan_rtl_proc.cc 25 proc->thr = nullptr;
35 CHECK_EQ(proc->thr, nullptr);
47 void ProcWire(Processor *proc, ThreadState *thr) {
48 CHECK_EQ(thr->proc1, nullptr);
49 CHECK_EQ(proc->thr, nullptr);
50 thr->proc1 = proc;
51 proc->thr = thr;
54 void ProcUnwire(Processor *proc, ThreadState *thr) {
55 CHECK_EQ(thr->proc1, proc)
    [all...]
tsan_rtl_mutex.cc 26 void ReportDeadlock(ThreadState *thr, uptr pc, DDReport *r);
29 ThreadState *thr; member in struct:__tsan::Callback
32 Callback(ThreadState *thr, uptr pc)
33 : thr(thr)
35 DDCallback::pt = thr->proc()->dd_pt;
36 DDCallback::lt = thr->dd_lt;
39 u32 Unwind() override { return CurrentStackId(thr, pc); }
40 int UniqueTid() override { return thr->unique_id; }
43 void DDMutexInit(ThreadState *thr, uptr pc, SyncVar *s)
416 ThreadState *thr = reinterpret_cast<ThreadState*>(arg); local in function:__tsan::UpdateClockCallback
459 ThreadState *thr = reinterpret_cast<ThreadState*>(arg); local in function:__tsan::UpdateSleepClockCallback
    [all...]
tsan_fd.cc 50 static FdSync *allocsync(ThreadState *thr, uptr pc) {
51 FdSync *s = (FdSync*)user_alloc_internal(thr, pc, sizeof(FdSync),
63 static void unref(ThreadState *thr, uptr pc, FdSync *s) {
69 user_free(thr, pc, s, false);
74 static FdDesc *fddesc(ThreadState *thr, uptr pc, int fd) {
82 void *p = user_alloc_internal(thr, pc, size, kDefaultAlignment, false);
84 MemoryResetRange(thr, (uptr)&fddesc, (uptr)p, size);
88 user_free(thr, pc, p, false);
94 static void init(ThreadState *thr, uptr pc, int fd, FdSync *s,
96 FdDesc *d = fddesc(thr, pc, fd)
    [all...]
tsan_update_shadow_word_inl.h 17 StatInc(thr, StatShadowProcessed);
22 StatInc(thr, StatShadowZero);
31 StatInc(thr, StatShadowSameSize);
34 StatInc(thr, StatShadowSameThread);
39 StatInc(thr, StatShadowAnotherThread);
40 if (HappensBefore(old, thr)) {
51 StatInc(thr, StatShadowIntersect);
53 StatInc(thr, StatShadowSameThread);
56 StatInc(thr, StatShadowAnotherThread);
59 if (HappensBefore(old, thr))
    [all...]
tsan_mman.cc 87 ThreadState *thr = cur_thread(); local in function:__tsan::ScopedGlobalProcessor::ScopedGlobalProcessor
88 if (thr->proc())
105 ProcWire(gp->proc, thr);
110 ThreadState *thr = cur_thread(); local in function:__tsan::ScopedGlobalProcessor::~ScopedGlobalProcessor
111 if (thr->proc() != gp->proc)
113 ProcUnwire(gp->proc, thr);
140 static void SignalUnsafeCall(ThreadState *thr, uptr pc) {
141 if (atomic_load_relaxed(&thr->in_signal_handler) == 0 ||
145 ObtainCurrentStack(thr, pc, &stack);
151 OutputReport(thr, rep)
309 ThreadState *thr = cur_thread(); local in function:__tsan::invoke_malloc_hook
317 ThreadState *thr = cur_thread(); local in function:__tsan::invoke_free_hook
325 ThreadState *thr = cur_thread(); local in function:__tsan::internal_alloc
334 ThreadState *thr = cur_thread(); local in function:__tsan::internal_free
380 ThreadState *thr = cur_thread(); local in function:__tsan_on_thread_idle
    [all...]
tsan_rtl.cc 344 void Initialize(ThreadState *thr) {
375 ProcWire(proc, thr);
398 int tid = ThreadCreate(thr, 0, 0, true);
400 ThreadStart(thr, tid, GetTid(), /*workerthread*/ false);
435 int Finalize(ThreadState *thr) {
440 if (flags()->atexit_sleep_ms > 0 && ThreadCount(thr) > 1)
452 ThreadFinalize(thr);
479 StatAggregate(ctx->stat, thr->stat);
487 void ForkBefore(ThreadState *thr, uptr pc) {
492 void ForkParentAfter(ThreadState *thr, uptr pc)
1043 ThreadState *thr = cur_thread(); local in function:__tsan::__tsan_testonly_shadow_stack_current_size
    [all...]
tsan_mman.h 30 void *user_alloc_internal(ThreadState *thr, uptr pc, uptr sz,
33 void user_free(ThreadState *thr, uptr pc, void *p, bool signal = true);
35 void *user_alloc(ThreadState *thr, uptr pc, uptr sz);
36 void *user_calloc(ThreadState *thr, uptr pc, uptr sz, uptr n);
37 void *user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz);
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, uptr pc, uptr sz);
43 void *user_pvalloc(ThreadState *thr, uptr pc, uptr sz)
    [all...]
tsan_interface_java.cc 41 ScopedJavaFunc(ThreadState *thr, uptr pc)
42 : thr_(thr) {
44 FuncEntry(thr, pc);
62 ThreadState *thr = cur_thread(); \
66 ScopedJavaFunc scoped(thr, caller_pc); \
71 DPrintf("#%d: java_init(%p, %p)\n", thr->tid, heap_begin, heap_size);
83 DPrintf("#%d: java_fini()\n", thr->tid);
86 int status = Finalize(thr);
87 DPrintf("#%d: java_fini() = %d\n", thr->tid, status);
93 DPrintf("#%d: java_alloc(%p, %p)\n", thr->tid, ptr, size)
    [all...]
tsan_interceptors.h 11 ScopedInterceptor(ThreadState *thr, const char *fname, uptr pc);
27 ThreadState *thr = cur_thread(); \
29 ScopedInterceptor si(thr, #func, caller_pc); \
40 if (!thr->is_inited || thr->ignore_interceptors || thr->in_ignored_lib) \
tsan_rtl.h 352 ThreadState *thr; // currently wired thread, or nullptr member in struct:__tsan::Processor
480 ThreadState *thr; member in class:__tsan::ThreadContext
643 void ObtainCurrentStack(ThreadState *thr, uptr toppc, StackTraceTy *stack,
645 uptr size = thr->shadow_stack_pos - thr->shadow_stack;
651 stack->Init(&thr->shadow_stack[start], size, toppc);
655 #define GET_STACK_TRACE_FATAL(thr, pc) \
657 ObtainCurrentStack(thr, pc, &stack); \
665 void ALWAYS_INLINE StatInc(ThreadState *thr, StatType typ, u64 n = 1) {
667 thr->stat[typ] += n
    [all...]
tsan_interceptors.cc 243 static ThreadSignalContext *SigCtx(ThreadState *thr) {
244 ThreadSignalContext *ctx = (ThreadSignalContext*)thr->signal_ctx;
245 if (ctx == 0 && !thr->is_dead) {
247 MemoryResetRange(thr, (uptr)&SigCtx, (uptr)ctx, sizeof(*ctx));
248 thr->signal_ctx = ctx;
253 ScopedInterceptor::ScopedInterceptor(ThreadState *thr, const char *fname,
255 : thr_(thr), pc_(pc), in_ignored_lib_(false), ignoring_(false) {
256 Initialize(thr);
258 if (!thr_->ignore_interceptors) FuncEntry(thr, pc);
315 #define READ_STRING_OF_LEN(thr, pc, s, len, n)
348 ThreadState *thr; member in struct:BlockingCall
454 ThreadState *thr = cur_thread(); local in function:on_exit_wrapper
908 ThreadState *thr = cur_thread(); local in function:__tsan::DestroyThreadState
951 ThreadState *thr = cur_thread(); local in function:__tsan_thread_start_func
1128 ThreadState *thr; member in struct:CondMutexUnlockCtx
1983 ThreadState *thr = cur_thread(); local in function:rtl_generic_sighandler
2145 ThreadState *thr; member in struct:dl_iterate_phdr_data
2194 ThreadState *thr; member in struct:TsanInterceptorContext
2436 ThreadState *thr; member in struct:ScopedSyscall
2556 ThreadState *thr = cur_thread(); local in function:TSAN_INTERCEPTOR
2613 ThreadState *thr = cur_thread(); local in function:__tsan::finalize
    [all...]
tsan_malloc_mac.cc 34 void *p = user_alloc(thr, pc, size)
38 void *p = user_realloc(thr, pc, ptr, size)
42 void *p = user_calloc(thr, pc, size, count)
51 int res = user_posix_memalign(thr, pc, memptr, alignment, size);
56 void *p = user_valloc(thr, pc, size)
60 user_free(thr, pc, ptr)
tsan_interface_inl.h 88 ThreadState *thr = cur_thread(); local in function:__tsan_vptr_update
89 thr->is_vptr_access = true;
90 MemoryWrite(thr, CALLERPC, (uptr)vptr_p, kSizeLog8);
91 thr->is_vptr_access = false;
97 ThreadState *thr = cur_thread(); local in function:__tsan_vptr_read
98 thr->is_vptr_access = true;
99 MemoryRead(thr, CALLERPC, (uptr)vptr_p, kSizeLog8);
100 thr->is_vptr_access = false;
  /src/sys/external/bsd/compiler_rt/dist/lib/tsan/dd/
dd_rtl.cc 22 static u32 CurrentStackTrace(Thread *thr, uptr skip) {
24 thr->ignore_interceptors = true;
26 thr->ignore_interceptors = false;
32 static void PrintStackTrace(Thread *thr, u32 stk) {
34 thr->ignore_interceptors = true;
36 thr->ignore_interceptors = false;
39 static void ReportDeadlock(Thread *thr, DDReport *rep) {
48 PrintStackTrace(thr, rep->loop[i].stk[1]);
52 PrintStackTrace(thr, rep->loop[i].stk[0]);
58 Callback::Callback(Thread *thr)
    [all...]
dd_rtl.h 35 Thread *thr; member in struct:__dsan::Callback
37 Callback(Thread *thr);
58 void ThreadInit(Thread *thr);
59 void ThreadDestroy(Thread *thr);
61 void MutexBeforeLock(Thread *thr, uptr m, bool writelock);
62 void MutexAfterLock(Thread *thr, uptr m, bool writelock, bool trylock);
63 void MutexBeforeUnlock(Thread *thr, uptr m, bool writelock);
64 void MutexDestroy(Thread *thr, uptr m);
dd_interceptors.cc 19 static __thread Thread *thr; variable in typeref:typename:__thread Thread *
29 if (thr != 0)
36 thr = (Thread*)InternalAlloc(sizeof(*thr));
37 internal_memset(thr, 0, sizeof(*thr));
38 ThreadInit(thr);
45 MutexDestroy(thr, (uptr)m);
51 MutexBeforeLock(thr, (uptr)m, true);
53 MutexAfterLock(thr, (uptr)m, true, false)
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/tsan/go/
tsan_go.cc 135 ThreadState *thr = (ThreadState*)internal_alloc(MBlockThreadContex, local in function:__tsan::AllocGoroutine
137 internal_memset(thr, 0, sizeof(*thr));
138 return thr;
144 ThreadState *thr = AllocGoroutine(); local in function:__tsan::__tsan_init
145 main_thr = *thrp = thr;
146 Initialize(thr);
147 *procp = thr->proc1;
153 ThreadState *thr = main_thr; local in function:__tsan::__tsan_fini
154 int res = Finalize(thr);
214 ThreadState *thr = AllocGoroutine(); local in function:__tsan::__tsan_go_start
    [all...]
test.c 19 void __tsan_init(void **thr, void **proc, void (*cb)(long, void*));
22 void __tsan_go_start(void *thr, void **chthr, void *pc);
23 void __tsan_go_end(void *thr);
26 void __tsan_proc_wire(void *proc, void *thr);
27 void __tsan_proc_unwire(void *proc, void *thr);
28 void __tsan_read(void *thr, void *addr, void *pc);
29 void __tsan_write(void *thr, void *addr, void *pc);
30 void __tsan_func_enter(void *thr, void *pc);
31 void __tsan_func_exit(void *thr);
32 void __tsan_malloc(void *thr, void *pc, void *p, unsigned long sz)
    [all...]
  /src/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/unit/
tsan_mman_test.cc 38 ThreadState *thr = cur_thread(); local in function:__tsan::TEST
40 char *p = (char*)user_alloc(thr, pc, 10);
42 char *p2 = (char*)user_alloc(thr, pc, 20);
47 user_free(thr, pc, p);
48 user_free(thr, pc, p2);
52 ThreadState *thr = cur_thread(); local in function:__tsan::TEST
55 void *p = user_realloc(thr, pc, 0, 0);
59 user_free(thr, pc, p);
62 void *p = user_realloc(thr, pc, 0, 100);
65 user_free(thr, pc, p)
99 ThreadState *thr = cur_thread(); local in function:__tsan::TEST
112 ThreadState *thr = cur_thread(); local in function:__tsan::TEST
141 ThreadState *thr = cur_thread(); local in function:__tsan::TEST
163 ThreadState *thr = cur_thread(); local in function:__tsan::TEST
180 ThreadState *thr = cur_thread(); local in function:__tsan::TEST
190 ThreadState *thr = cur_thread(); local in function:__tsan::TEST
    [all...]
tsan_stack_test.cc 22 ThreadState thr(0, 0, 0, 0, 0, 0, 0, 0, 0); local in function:__tsan::TestStackTrace
24 thr.shadow_stack = &stack[0];
25 thr.shadow_stack_pos = &stack[0];
26 thr.shadow_stack_end = &stack[128];
28 ObtainCurrentStack(&thr, 0, trace);
31 ObtainCurrentStack(&thr, 42, trace);
35 *thr.shadow_stack_pos++ = 100;
36 *thr.shadow_stack_pos++ = 101;
37 ObtainCurrentStack(&thr, 0, trace);
42 ObtainCurrentStack(&thr, 42, trace)
51 ThreadState thr(0, 0, 0, 0, 0, 0, 0, 0, 0); local in function:__tsan::TestTrim
    [all...]
tsan_sync_test.cc 20 ThreadState *thr = cur_thread(); local in function:__tsan::TEST
23 m->AllocBlock(thr, 0, (uptr)&block[0], 1 * sizeof(u64));
27 EXPECT_EQ(mb->tid, thr->tid);
28 uptr sz = m->FreeBlock(thr->proc(), (uptr)&block[0]);
35 ThreadState *thr = cur_thread(); local in function:__tsan::TEST
38 m->AllocBlock(thr, 0, (uptr)&block[0], 1 * sizeof(u64));
39 m->AllocBlock(thr, 0, (uptr)&block[1], 3 * sizeof(u64));
44 m->FreeRange(thr->proc(), (uptr)&block[0], 4 * sizeof(u64));
52 ThreadState *thr = cur_thread(); local in function:__tsan::TEST
55 m->AllocBlock(thr, 0, (uptr)&block[0], 4 * sizeof(u64))
75 ThreadState *thr = cur_thread(); local in function:__tsan::TEST
112 ThreadState *thr = cur_thread(); local in function:__tsan::TEST
    [all...]
  /src/regress/sys/kern/softint1/
softint1.c 58 pthread_t thr; local in function:main
62 pthread_create(&thr, NULL, thread, NULL);
  /src/lib/libpthread/
thrd.c 66 thrd_create(thrd_t *thr, thrd_start_t func, void *arg)
71 _DIAGASSERT(thr != NULL);
81 switch(pthread_create(thr, NULL, __thrd_create_tramp, cookie)) {
104 thrd_detach(thrd_t thr)
107 _DIAGASSERT(thr != NULL);
109 if (pthread_detach(thr) == 0)

Completed in 36 milliseconds

1 2 3