/netbsd-src/external/cddl/osnet/dist/uts/powerpc/dtrace/ |
H A D | fasttrap_isa.c | 221 fill_regs(curthread, &r); in fasttrap_pid_getarg() 232 fill_regs(curthread, &r); in fasttrap_usdt_getarg() 349 if (curthread->t_dtrace_step) { in fasttrap_pid_probe() 350 ASSERT(curthread->t_dtrace_on); in fasttrap_pid_probe() 351 fasttrap_sigtrap(p, curthread, pc); in fasttrap_pid_probe() 358 curthread->t_dtrace_ft = 0; in fasttrap_pid_probe() 359 curthread->t_dtrace_pc = 0; in fasttrap_pid_probe() 360 curthread->t_dtrace_npc = 0; in fasttrap_pid_probe() 361 curthread->t_dtrace_scrpc = 0; in fasttrap_pid_probe() 362 curthread->t_dtrace_astpc = 0; in fasttrap_pid_probe() [all …]
|
/netbsd-src/sys/kern/ |
H A D | kern_rwlock.c | 285 uintptr_t owner, incr, need_wait, set_wait, curthread, next; in rw_vector_enter() local 296 curthread = (uintptr_t)l; in rw_vector_enter() 299 RW_ASSERT(rw, curthread != 0); in rw_vector_enter() 323 incr = curthread | RW_WRITE_LOCKED; in rw_vector_enter() 353 if (__predict_false(RW_OWNER(rw) == curthread)) { in rw_vector_enter() 410 if (op == RW_READER || (rw->rw_owner & RW_THREAD) == curthread) in rw_vector_enter() 426 RW_ASSERT(rw, (op != RW_READER && RW_OWNER(rw) == curthread) || in rw_vector_enter() 439 uintptr_t curthread, owner, decr, newown, next; in rw_vector_exit() local 445 curthread = (uintptr_t)l; in rw_vector_exit() 446 RW_ASSERT(rw, curthread != 0); in rw_vector_exit() [all …]
|
H A D | kern_mutex.c | 231 MUTEX_ACQUIRE(kmutex_t *mtx, uintptr_t curthread) in MUTEX_ACQUIRE() argument 235 uintptr_t newown = curthread; in MUTEX_ACQUIRE() 452 uintptr_t owner, curthread; in mutex_vector_enter() local 515 curthread = (uintptr_t)curlwp; in mutex_vector_enter() 518 MUTEX_ASSERT(mtx, curthread != 0); in mutex_vector_enter() 545 if (MUTEX_ACQUIRE(mtx, curthread)) in mutex_vector_enter() 550 if (__predict_false(MUTEX_OWNER(owner) == curthread)) { in mutex_vector_enter() 706 MUTEX_DASSERT(mtx, MUTEX_OWNER(mtx->mtx_owner) == curthread); in mutex_vector_enter() 719 uintptr_t curthread; in mutex_vector_exit() local 746 curthread = (uintptr_t)curlwp; in mutex_vector_exit() [all …]
|
/netbsd-src/external/cddl/osnet/dist/uts/intel/dtrace/ |
H A D | fasttrap_isa.c | 988 if (curthread->t_dtrace_step) { 989 ASSERT(curthread->t_dtrace_on); 990 fasttrap_sigtrap(p, curthread, pc); 997 curthread->t_dtrace_ft = 0; 998 curthread->t_dtrace_pc = 0; 999 curthread->t_dtrace_npc = 0; 1000 curthread->t_dtrace_scrpc = 0; 1001 curthread->t_dtrace_astpc = 0; 1003 curthread->t_dtrace_regv = 0; 1238 fasttrap_sigsegv(p, curthread, rp->r_rsp); [all …]
|
/netbsd-src/external/cddl/osnet/dev/dtrace/ |
H A D | dtrace_vtime.c | 94 if (curthread->t_dtrace_start != 0) { in dtrace_vtime_switch() 95 curthread->t_dtrace_vtime += ts - curthread->t_dtrace_start; in dtrace_vtime_switch() 96 curthread->t_dtrace_start = 0; in dtrace_vtime_switch()
|
/netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/ |
H A D | rrwlock.c | 175 ASSERT(rrl->rr_writer != curthread); in rrw_enter_read_impl() 217 ASSERT(rrl->rr_writer != curthread); in rrw_enter_write() 226 rrl->rr_writer = curthread; in rrw_enter_write() 268 ASSERT(rrl->rr_writer == curthread); in rrw_exit() 289 held = (rrl->rr_writer == curthread); in rrw_held() 305 (void *)curthread, (void *)rn->rn_rrl); in rrw_tsd_destroy() 357 #define RRM_TD_LOCK() (((uint32_t)(uintptr_t)(curthread)) % RRM_NUM_LOCKS) 379 if (rrl->locks[0].rr_writer == curthread) { in rrm_exit()
|
H A D | zrlock.c | 83 if (zrl->zr_owner == curthread) { in zrl_add_impl() 87 zrl->zr_owner = curthread; in zrl_add_impl() 109 if (zrl->zr_owner == curthread) { in zrl_remove() 129 zrl->zr_owner = curthread; in zrl_tryenter() 147 ASSERT3P(zrl->zr_owner, ==, curthread); in zrl_exit()
|
H A D | zfs_onexit.c | 136 tmpfp = curthread->td_fpop; in zfs_onexit_fd_hold() 137 curthread->td_fpop = fp; in zfs_onexit_fd_hold() 141 curthread->td_fpop = tmpfp; in zfs_onexit_fd_hold()
|
/netbsd-src/external/cddl/osnet/dist/lib/libzpool/common/ |
H A D | kernel.c | 146 return (mp->m_owner == curthread); in zmutex_owned() 154 ASSERT(mp->m_owner != curthread); in mutex_enter() 157 mp->m_owner = curthread; in mutex_enter() 167 mp->m_owner = curthread; in mutex_tryenter() 178 ASSERT(mutex_owner(mp) == curthread); in mutex_exit() 220 ASSERT(rwlp->rw_owner != curthread); in rw_enter() 230 rwlp->rw_owner = curthread; in rw_enter() 240 if (rwlp->rw_owner == curthread) { in rw_exit() 260 ASSERT(rwlp->rw_owner != curthread); in rw_tryenter() 275 rwlp->rw_owner = curthread; in rw_tryenter() [all …]
|
/netbsd-src/external/cddl/dtracetoolkit/dist/Bin/ |
H A D | crash.d | 69 self->elapsed = timestamp - curthread->t_procp->p_mstart; 80 printf("LWPs: %d\n", curthread->t_procp->p_lwpcnt); 117 self->procp = curthread->t_procp;
|
H A D | dispqlen.d | 46 lquantize(curthread->t_cpu->cpu_disp->disp_nrunnable, 0, 64, 1);
|
H A D | runocc.d | 45 /curthread->t_cpu->cpu_disp->disp_nrunnable/
|
H A D | setuids.d | 70 curthread->t_procp->p_parent->p_user.u_comm,
|
H A D | mmapfiles.d | 48 this->filep = curthread->t_procp->p_user.u_finfo.fi_list[arg4].uf_file;
|
/netbsd-src/external/cddl/dtracetoolkit/dist/Proc/ |
H A D | crash.d | 69 self->elapsed = timestamp - curthread->t_procp->p_mstart; 80 printf("LWPs: %d\n", curthread->t_procp->p_lwpcnt); 117 self->procp = curthread->t_procp;
|
H A D | mmapfiles.d | 48 this->filep = curthread->t_procp->p_user.u_finfo.fi_list[arg4].uf_file;
|
/netbsd-src/external/cddl/osnet/dev/systrace/ |
H A D | systrace.c | 161 #define curthread curlwp macro 256 curthread->t_dtrace_systrace_args = uargs; in systrace_probe() 261 curthread->t_dtrace_systrace_args = NULL; in systrace_probe() 318 uargs = curthread->t_dtrace_systrace_args; in systrace_getargval()
|
/netbsd-src/sys/arch/hppa/include/ |
H A D | mutex.h | 162 MUTEX_ACQUIRE(struct kmutex *mtx, uintptr_t curthread) in MUTEX_ACQUIRE() argument 166 mtx->mtx_owner = curthread; in MUTEX_ACQUIRE()
|
/netbsd-src/external/cddl/osnet/lib/libdtrace/ |
H A D | psinfo.d | 90 inline psinfo_t *curpsinfo = xlate <psinfo_t *> (curthread->l_proc); 94 inline lwpsinfo_t *curlwpsinfo = xlate <lwpsinfo_t *> (curthread);
|
/netbsd-src/external/cddl/osnet/dist/uts/common/sys/ |
H A D | callb.h | 145 strlcpy(curthread->td_name, (name), \ 146 sizeof(curthread->td_name)); \
|
/netbsd-src/external/cddl/osnet/dist/uts/common/fs/zfs/sys/ |
H A D | zfs_context.h | 148 #define tsd_get(key) osd_thread_get(curthread, (key)) 149 #define tsd_set(key, value) osd_thread_set(curthread, (key), (value))
|
/netbsd-src/external/cddl/dtracetoolkit/dist/Cpu/ |
H A D | dispqlen.d | 46 lquantize(curthread->t_cpu->cpu_disp->disp_nrunnable, 0, 64, 1);
|
H A D | runocc.d | 45 /curthread->t_cpu->cpu_disp->disp_nrunnable/
|
/netbsd-src/external/cddl/dtracetoolkit/dist/User/ |
H A D | setuids.d | 70 curthread->t_procp->p_parent->p_user.u_comm,
|
/netbsd-src/external/cddl/osnet/sys/sys/ |
H A D | proc.h | 77 #define curthread curlwp macro
|