/titanic_50/usr/src/uts/common/disp/ |
H A D | shuttle.c | 89 klwp_t *lwp = ttolwp(curthread); in shuttle_resume() 93 thread_lock(curthread); in shuttle_resume() 100 curthread->t_flag |= T_WAKEABLE; in shuttle_resume() 101 curthread->t_sobj_ops = &shuttle_sobj_ops; in shuttle_resume() 115 curthread->t_wchan0 = (caddr_t)1; in shuttle_resume() 116 CL_INACTIVE(curthread); in shuttle_resume() 119 THREAD_SLEEP(curthread, &shuttle_lock); in shuttle_resume() 125 (void) new_mstate(curthread, LMS_SLEEP); in shuttle_resume() 164 if (lwp && (ISSIG(curthread, JUSTLOOKING) || in shuttle_resume() 165 MUSTRETURN(curproc, curthread) || schedctl_cancel_pending())) in shuttle_resume() [all …]
|
/titanic_50/usr/src/cmd/dtrace/test/tst/common/misc/ |
H A D | tst.roch.d | 46 /(self->done == 0) && (curthread->t_cpu->cpu_intr_actv == 0) / 50 (long long)curthread, pid, tid, 56 /(self->done == 0) && (curthread->t_cpu->cpu_intr_actv == 0) / 60 (long long) curthread, pid, tid, 68 (long long)curthread, pid, tid); 74 (long long)curthread, pid, tid, (int)arg1, (int)arg0); 80 (long long)curthread, pid, tid, arg0); 86 (long long) curthread, pid, tid, arg0);
|
/titanic_50/usr/src/uts/sun4/os/ |
H A D | trap.c | 103 curthread->t_panic_trap = &ti; in die() 145 proc_t *p = ttoproc(curthread); in trap() 146 klwp_id_t lwp = ttolwp(curthread); in trap() 172 ASSERT((curthread->t_schedflag & TS_DONT_SWAP) || in trap() 175 ASSERT(curthread->t_schedflag & TS_DONT_SWAP); in trap() 192 if (curthread->t_cred != p->p_cred) { in trap() 193 cred_t *oldcred = curthread->t_cred; in trap() 199 curthread->t_cred = crgetcred(); in trap() 224 mstate = new_mstate(curthread, mstate); in trap() 311 if (curthread->t_lofault) { in trap() [all …]
|
H A D | dtrace_subr.c | 112 sigaddqa(p, curthread, sqp); in dtrace_pid_probe() 114 aston(curthread); in dtrace_pid_probe() 124 uintptr_t npc = curthread->t_dtrace_npc; in dtrace_return_probe() 125 uint8_t step = curthread->t_dtrace_step; in dtrace_return_probe() 126 uint8_t ret = curthread->t_dtrace_ret; in dtrace_return_probe() 128 if (curthread->t_dtrace_ast) { in dtrace_return_probe() 129 aston(curthread); in dtrace_return_probe() 130 curthread->t_sig_check = 1; in dtrace_return_probe() 136 curthread->t_dtrace_ft = 0; in dtrace_return_probe() 144 tsignal(curthread, SIGILL); in dtrace_return_probe() [all …]
|
/titanic_50/usr/src/uts/common/syscall/ |
H A D | sigsuspend.c | 56 schedctl_finish_sigblock(curthread); in sigsuspend() 57 ttolwp(curthread)->lwp_sigoldmask = curthread->t_hold; in sigsuspend() 58 curthread->t_hold = kset; in sigsuspend() 59 curthread->t_sig_check = 1; /* so post-syscall will re-evaluate */ in sigsuspend() 60 curthread->t_flag |= T_TOMASK; in sigsuspend() 62 while (cv_wait_sig_swap(&curthread->t_delay_cv, &p->p_lock)) in sigsuspend()
|
H A D | lwp_create.c | 69 proc_t *p = ttoproc(curthread); in syslwp_create() 86 if (curthread == p->p_agenttp) in syslwp_create() 130 curthread->t_pri, &sigmask, curthread->t_cid, 0); in syslwp_create() 162 if (curthread->t_ctx) in syslwp_create() 163 lwp_createctx(curthread, t); in syslwp_create() 168 lwp_ctmpl_copy(lwp, ttolwp(curthread)); in syslwp_create() 210 proc_t *p = ttoproc(curthread); in syslwp_exit()
|
H A D | pause.c | 49 mutex_enter(&curthread->t_delay_lock); in pause() 50 while (cv_wait_sig_swap(&curthread->t_delay_cv, in pause() 51 &curthread->t_delay_lock)) in pause() 53 mutex_exit(&curthread->t_delay_lock); in pause()
|
H A D | lwpsys.c | 84 proc_t *p = ttoproc(curthread); in syslwp_suspend() 101 proc_t *p = ttoproc(curthread); in syslwp_continue() 118 proc_t *p = ttoproc(curthread); in lwp_kill() 174 proc_t *p = ttoproc(curthread); in lwp_wait() 176 int daemon = (curthread->t_proc_flag & TP_DAEMON)? 1 : 0; in lwp_wait() 184 if (curthread == p->p_agenttp) in lwp_wait() 190 curthread->t_waitfor = lwpid; in lwp_wait() 226 curthread->t_waitfor = -1; in lwp_wait() 273 curthread->t_waitfor = -1; in lwp_wait() 299 if (t == curthread) { in lwp_wait() [all …]
|
/titanic_50/usr/src/uts/common/os/ |
H A D | semaphore.c | 72 klwp_t *lwp = ttolwp(curthread); \ 73 ASSERT(THREAD_LOCK_HELD(curthread)); \ 74 ASSERT(curthread != CPU->cpu_idle_thread); \ 76 ASSERT(curthread->t_wchan0 == NULL); \ 77 ASSERT(curthread->t_wchan == NULL); \ 78 ASSERT(curthread->t_state == TS_ONPROC); \ 79 CL_SLEEP(curthread); \ 80 THREAD_SLEEP(curthread, lockp); \ 81 curthread->t_wchan = (caddr_t)s; \ 82 curthread->t_sobj_ops = &sema_sobj_ops; \ [all …]
|
H A D | main.c | 158 proc_t *p = ttoproc(curthread); in exec_init() 159 klwp_t *lwp = ttolwp(curthread); in exec_init() 261 curthread->t_post_sys = 1; in exec_init() 262 curthread->t_sysnum = SYS_execve; in exec_init() 269 sigemptyset(&curthread->t_hold); in exec_init() 338 init_mstate(curthread, LMS_SYSTEM); in start_init_common() 362 proc_t *p = ttoproc(curthread); /* &p0 */ in main() 397 ASSERT(curthread == CPU->cpu_thread); in main() 471 ttolwp(curthread)->lwp_error = 0; /* XXX kludge for SCSI driver */ in main() 516 curthread->t_start = PTOU(curproc)->u_start.tv_sec; in main() [all …]
|
H A D | turnstile.c | 245 ASSERT(inheritor == curthread); in turnstile_pi_waive() 265 kthread_t *inheritor = curthread; in turnstile_pi_recalc() 410 kthread_t *t = curthread; in turnstile_block() 456 curthread->t_flag |= T_WAKEABLE; in turnstile_block() 492 if (owner == curthread) { in turnstile_block() 516 setrun(curthread); in turnstile_block() 518 curthread->t_flag &= ~T_WAKEABLE; in turnstile_block() 553 t = curthread; in turnstile_block() 589 t = curthread; in turnstile_block() 609 ushort_t s = curthread->t_oldspl; in turnstile_block() [all …]
|
/titanic_50/usr/src/lib/libc/port/threads/ |
H A D | rwlock.c | 51 ulwp_t *self = curthread; in rwl_entry() 140 ulwp_t *self = curthread; in rw_read_held() 183 ulwp_t *self = curthread; in rw_write_held() 204 ulwp_t *self = curthread; in rwlock_init() 241 ulwp_t *self = curthread; in rwlock_destroy() 288 ulwp_t *self = curthread; in read_lock_try() 309 ulwp_t *self = curthread; in read_unlock_try() 332 ulwp_t *self = curthread; in write_lock_try() 355 ulwp_t *self = curthread; in write_unlock_try() 479 ulwp_t *self = curthread; in rw_queue_release() [all …]
|
H A D | tsd.c | 53 tsd_metadata_t *tsdm = &curthread->ul_uberdata->tsd_metadata; in thr_keycreate() 187 tsd_metadata_t *tsdm = &curthread->ul_uberdata->tsd_metadata; in pthread_key_delete() 227 return (curthread->ul_ftsd[key]); in pthread_getspecific() 229 if ((stsd = curthread->ul_stsd) != NULL && key < stsd->tsd_nalloc) in pthread_getspecific() 251 *valuep = curthread->ul_ftsd[key]; in thr_getspecific() 252 else if ((stsd = curthread->ul_stsd) != NULL && key < stsd->tsd_nalloc) in thr_getspecific() 269 ulwp_t *self = curthread; in thr_setspecific_slow() 326 ulwp_t *self = curthread; in thr_setspecific() 335 curthread->ul_ftsd[key] = value; in thr_setspecific() 339 if ((stsd = curthread->ul_stsd) != NULL && key < stsd->tsd_nalloc) { in thr_setspecific() [all …]
|
H A D | cancel.c | 38 ulwp_t *self = curthread; in pthread_cancel() 94 ulwp_t *self = curthread; in pthread_setcancelstate() 151 ulwp_t *self = curthread; in pthread_setcanceltype() 205 ulwp_t *self = curthread; in pthread_testcancel() 219 ulwp_t *self = curthread; in _cancelon() 237 ulwp_t *self = curthread; in _canceloff() 255 ulwp_t *self = curthread; in _canceloff_nocancel() 274 ulwp_t *self = curthread; in __pthread_cleanup_push() 293 ulwp_t *self = curthread; in __pthread_cleanup_pop() 396 ulwp_t *self = curthread; in cancel_active()
|
H A D | sema.c | 67 curthread->ul_misaligned == 0) in sema_init() 86 ulwp_t *self = curthread; in sema_wait_impl() 205 ASSERT(!curthread->ul_critical || curthread->ul_bindflags); in sema_wait() 214 ASSERT(!curthread->ul_critical || curthread->ul_bindflags); in sema_reltimedwait() 223 ASSERT(!curthread->ul_critical || curthread->ul_bindflags); in sema_timedwait() 233 ulwp_t *self = curthread; in sema_trywait() 239 ASSERT(!curthread->ul_critical || curthread->ul_bindflags); in sema_trywait() 300 ulwp_t *self = curthread; in sema_post()
|
/titanic_50/usr/src/uts/i86pc/os/ |
H A D | dtrace_subr.c | 185 if (curthread->t_cred != p->p_cred) { in dtrace_user_probe() 186 cred_t *oldcred = curthread->t_cred; in dtrace_user_probe() 192 curthread->t_cred = crgetcred(); in dtrace_user_probe() 198 uint8_t step = curthread->t_dtrace_step; in dtrace_user_probe() 199 uint8_t ret = curthread->t_dtrace_ret; in dtrace_user_probe() 200 uintptr_t npc = curthread->t_dtrace_npc; in dtrace_user_probe() 202 if (curthread->t_dtrace_ast) { in dtrace_user_probe() 203 aston(curthread); in dtrace_user_probe() 204 curthread->t_sig_check = 1; in dtrace_user_probe() 210 curthread->t_dtrace_ft = 0; in dtrace_user_probe() [all …]
|
/titanic_50/usr/src/lib/libc/port/gen/ |
H A D | atfork.c | 52 ulwp_t *self = curthread; in pthread_atfork() 92 uberdata_t *udp = curthread->ul_uberdata; in _prefork_handler() 96 ASSERT(MUTEX_OWNED(&udp->atfork_lock, curthread)); in _prefork_handler() 113 uberdata_t *udp = curthread->ul_uberdata; in _postfork_parent_handler() 117 ASSERT(MUTEX_OWNED(&udp->atfork_lock, curthread)); in _postfork_parent_handler() 134 uberdata_t *udp = curthread->ul_uberdata; in _postfork_child_handler() 138 ASSERT(MUTEX_OWNED(&udp->atfork_lock, curthread)); in _postfork_child_handler()
|
/titanic_50/usr/src/uts/intel/dtrace/ |
H A D | fasttrap_isa.c | 896 if (curthread->t_dtrace_step) { in fasttrap_pid_probe() 897 ASSERT(curthread->t_dtrace_on); in fasttrap_pid_probe() 898 fasttrap_sigtrap(p, curthread, pc); in fasttrap_pid_probe() 905 curthread->t_dtrace_ft = 0; in fasttrap_pid_probe() 906 curthread->t_dtrace_pc = 0; in fasttrap_pid_probe() 907 curthread->t_dtrace_npc = 0; in fasttrap_pid_probe() 908 curthread->t_dtrace_scrpc = 0; in fasttrap_pid_probe() 909 curthread->t_dtrace_astpc = 0; in fasttrap_pid_probe() 911 curthread->t_dtrace_regv = 0; in fasttrap_pid_probe() 1125 fasttrap_sigsegv(p, curthread, rp->r_sp); in fasttrap_pid_probe() [all …]
|
/titanic_50/usr/src/uts/intel/ia32/syscall/ |
H A D | getcontext.c | 56 proc_t *p = ttoproc(curthread); in savecontext() 57 klwp_t *lwp = ttolwp(curthread); in savecontext() 118 aston(curthread); in savecontext() 137 kthread_t *t = curthread; in restorecontext() 161 aston(curthread); in restorecontext() 185 klwp_t *lwp = ttolwp(curthread); in getsetcontext() 201 schedctl_finish_sigblock(curthread); in getsetcontext() 202 savecontext(&uc, &curthread->t_hold); in getsetcontext() 259 proc_t *p = ttoproc(curthread); in savecontext32() 260 klwp_t *lwp = ttolwp(curthread); in savecontext32() [all …]
|
/titanic_50/usr/src/cmd/dtrace/test/tst/common/scalars/ |
H A D | tst.selfarray2.d | 35 kthread_t *curthread; member 44 self->foo[0].curthread = curthread; 51 pid, self->foo[0].pid, self->foo[0].curthread, curthread);
|
/titanic_50/usr/src/uts/intel/ia32/os/ |
H A D | syscall.c | 153 ASSERT(t == curthread && curthread->t_schedflag & TS_DONT_SWAP); in syscall_entry() 239 kthread_t *t = curthread; in pre_syscall() 410 printf(" %s id=0x%p\n", PTOU(p)->u_comm, curthread); in pre_syscall() 438 kthread_t *t = curthread; in post_syscall() 468 aston(curthread); in post_syscall() 482 if (curthread->t_pdmsg != NULL) { in post_syscall() 483 char *m = curthread->t_pdmsg; in post_syscall() 487 curthread->t_pdmsg = NULL; in post_syscall() 506 if (curthread->t_rprof != NULL && in post_syscall() 507 curthread->t_rprof->rp_anystate != 0) { in post_syscall() [all …]
|
/titanic_50/usr/src/uts/common/cpr/ |
H A D | cpr_uthread.c | 62 p == proc_init || p == ttoproc(curthread)) in cpr_signal_user() 112 tp = curthread->t_next; in cpr_stop_user() 163 } while ((tp = tp->t_next) != curthread); in cpr_stop_user() 179 tp = curthread->t_next; in cpr_check_user_threads() 214 } while ((tp = tp->t_next) != curthread && rc == 0); in cpr_check_user_threads() 231 tp = curthread->t_next; in cpr_start_user_threads() 258 } while ((tp = tp->t_next) != curthread); in cpr_start_user_threads() 324 tp = curthread->t_next; in cpr_threads_are_stopped() 339 } while ((tp = tp->t_next) != curthread); in cpr_threads_are_stopped()
|
/titanic_50/usr/src/uts/sparc/dtrace/ |
H A D | fasttrap_isa.c | 432 if (curthread->t_dtrace_step) { in fasttrap_pid_probe() 433 ASSERT(curthread->t_dtrace_on); in fasttrap_pid_probe() 434 fasttrap_sigtrap(p, curthread, pc); in fasttrap_pid_probe() 441 curthread->t_dtrace_ft = 0; in fasttrap_pid_probe() 442 curthread->t_dtrace_pc = 0; in fasttrap_pid_probe() 443 curthread->t_dtrace_npc = 0; in fasttrap_pid_probe() 444 curthread->t_dtrace_scrpc = 0; in fasttrap_pid_probe() 445 curthread->t_dtrace_astpc = 0; in fasttrap_pid_probe() 929 curthread->t_dtrace_scrpc = rp->r_g7; in fasttrap_pid_probe() 930 curthread->t_dtrace_astpc = rp->r_g7 + FASTTRAP_OFF_FTRET; in fasttrap_pid_probe() [all …]
|
/titanic_50/usr/src/uts/intel/os/ |
H A D | door_support.c | 47 if (curthread->t_post_sys && PTOU(ttoproc(curthread))->u_systrap) in door_finish_dispatch() 49 lwp_setsp(ttolwp(curthread), newsp); in door_finish_dispatch() 50 lwptoregs(ttolwp(curthread))->r_fp = 0; /* stack ends here */ in door_finish_dispatch()
|
/titanic_50/usr/src/uts/sparc/os/ |
H A D | syscall.c | 208 kthread_t *t = curthread; in save_syscall_args() 325 klwp_t *lwp = ttolwp(curthread); in reset_syscall_args() 339 tsignal(curthread, SIGSYS); in nosys() 355 kthread_t *t = curthread; in pre_syscall() 510 printf(" %s id=0x%p\n", PTOU(p)->u_comm, curthread); in pre_syscall() 537 kthread_t *t = curthread; in post_syscall() 570 if (curthread->t_pdmsg != NULL) { in post_syscall() 571 char *m = curthread->t_pdmsg; in post_syscall() 575 curthread->t_pdmsg = NULL; in post_syscall() 593 if (curthread->t_rprof != NULL && in post_syscall() [all …]
|