/src/regress/sys/kern/softint1/ |
softint1.c | 58 pthread_t thr; local in function:main 62 pthread_create(&thr, NULL, thread, NULL);
|
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);
|
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_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...] |
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_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);
|
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);
|
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);
|
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
|
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--;
|