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

1 2

  /src/regress/sys/kern/softint1/
softint1.c 58 pthread_t thr; local in function:main
62 pthread_create(&thr, NULL, thread, NULL);
  /src/sys/modules/examples/readhappy_mpsafe/
test_readhappy.c 72 pthread_t thr[100]; local in function:main
78 pthread_create(&thr[i], NULL, read_happy, NULL);
  /src/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/unit/
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_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_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/sys/external/bsd/compiler_rt/dist/lib/tsan/dd/
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/tests/kernel/
t_timeleft.c 89 pthread_t thr; local in function:tester
92 ATF_REQUIRE(pthread_create(&thr, NULL, runner, &i) == 0);
95 ATF_REQUIRE(pthread_kill(thr, SIGINT) == 0);
96 ATF_REQUIRE(pthread_join(thr, NULL) == 0);
  /src/tests/lib/libc/net/
h_nsd_recurse.c 103 pthread_t thr; local in function:main
106 assert(pthread_create(&thr, NULL, thrfunc, NULL) == 0);
108 assert(pthread_join(thr, &threval) == 0);
  /src/tests/lib/libpthread/
t_name.c 76 pthread_t thr, self = pthread_self(); local in function:ATF_TC_BODY
92 PTHREAD_REQUIRE(pthread_create(&thr, &attr, threadfunc, NULL));
93 PTHREAD_REQUIRE(pthread_join(thr, NULL));
95 ATF_REQUIRE_EQ(pthread_getname_np(thr, retname, sizeof(retname)), ESRCH);
  /src/sys/arch/bebox/stand/boot/
ns16550.h 49 #define thr rbr macro
  /src/sys/arch/prep/stand/boot/
ns16550.h 48 #define thr rbr macro
  /src/sys/arch/rs6000/stand/boot/
ns16550.h 48 #define thr rbr macro
  /src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/
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;
tsan_symbolize.cc 26 ThreadState *thr = cur_thread(); local in function:__tsan::EnterSymbolizer
27 CHECK(!thr->in_symbolizer);
28 thr->in_symbolizer = true;
29 thr->ignore_interceptors++;
33 ThreadState *thr = cur_thread(); local in function:__tsan::ExitSymbolizer
34 CHECK(thr->in_symbolizer);
35 thr->in_symbolizer = false;
36 thr->ignore_interceptors--;
tsan_external.cc 46 void InsertShadowStackFrameForTag(ThreadState *thr, uptr tag) {
47 FuncEntry(thr, (uptr)&registered_tags[tag]);
63 ThreadState *thr = cur_thread(); local in function:__tsan::ExternalAccess
64 if (caller_pc) FuncEntry(thr, (uptr)caller_pc);
65 InsertShadowStackFrameForTag(thr, (uptr)tag);
68 access(thr, CALLERPC, (uptr)addr, kSizeLog1);
70 FuncExit(thr);
71 if (caller_pc) FuncExit(thr);
tsan_platform_linux.cc 338 void ImitateTlsWrite(ThreadState *thr, uptr tls_addr, uptr tls_size) {
339 // Check that the thr object is in tls;
340 const uptr thr_beg = (uptr)thr;
341 const uptr thr_end = (uptr)thr + sizeof(*thr);
346 // Since the thr object is huge, skip it.
347 MemoryRangeImitateWrite(thr, /*pc=*/2, tls_addr, thr_beg - tls_addr);
348 MemoryRangeImitateWrite(thr, /*pc=*/2, thr_end,
378 ThreadState* thr = reinterpret_cast<ThreadState*>(*get_android_tls_ptr()); local in function:__tsan::cur_thread
379 if (thr == nullptr)
410 ThreadState* thr = reinterpret_cast<ThreadState*>(*get_android_tls_ptr()); local in function:__tsan::cur_thread_finalize
    [all...]
tsan_platform_mac.cc 90 ThreadState *thr = (ThreadState *)SignalSafeGetOrAllocate( local in function:__tsan::cur_thread
92 return thr;
210 ThreadState *thr = cur_thread(); local in function:__tsan::my_pthread_introspection_hook
212 ProcWire(proc, thr);
216 ThreadStart(thr, tid, GetTid(), /*workerthread*/ true);
220 ThreadState *thr = cur_thread(); local in function:__tsan::my_pthread_introspection_hook
221 if (thr->tctx) {
265 void ImitateTlsWrite(ThreadState *thr, uptr tls_addr, uptr tls_size) {
271 MemoryRangeImitateWrite(thr, /*pc=*/2, tls_addr, tls_size);
279 MemoryRangeImitateWrite(thr, /*pc=*/2, tls_addr
    [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_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_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...]
  /src/sys/arch/ia64/ia64/
interrupt.c 141 struct thread *thr = PCPU_GET(fpcurthread); local in function:interrupt
143 if (thr != NULL) {
144 mtx_lock_spin(&thr->td_md.md_highfp_mtx);
145 save_high_fp(&thr->td_pcb->pcb_high_fp);
146 thr->td_pcb->pcb_fpcpu = NULL;
148 mtx_unlock_spin(&thr->td_md.md_highfp_mtx);
  /src/lib/libc/net/
nsdispatch.c 165 thr_t thr; member in struct:_ns_drec
628 drec.thr = thr_self();
631 if (ldrec->thr == drec.thr)
  /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...]
  /src/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/rtl/
tsan_test_util_posix.cc 51 pthread_t thr; local in function:TestMutexBeforeInit
52 __interceptor_pthread_create(&thr, 0, BeforeInitThread, 0);
53 __interceptor_pthread_join(thr, 0);

Completed in 48 milliseconds

1 2