Lines Matching defs:lwp
97 klwp_t *lwp;
103 if ((lwp = ttolwp(t)) != NULL) {
104 ms = &lwp->lwp_mstate;
249 klwp_t *lwp;
254 if ((lwp = ttolwp(t)) == NULL)
259 ms = &lwp->lwp_mstate;
355 klwp_t *lwp;
374 lwp = ttolwp(t);
375 ms = &lwp->lwp_mstate;
398 klwp_t *lwp;
403 if ((lwp = ttolwp(t)) == NULL)
409 ms = &lwp->lwp_mstate;
440 * by an lwp. The function cpu_decay() is also called from /proc code.
546 * Defined to determine whether a lwp is still on a processor.
613 klwp_t *lwp;
621 * Don't do microstate processing for threads without a lwp (kernel
624 * microstate of the underlying lwp which doesn't realize that it's
627 if (((lwp = ttolwp(t)) == NULL) || t->t_intr)
635 ms = &lwp->lwp_mstate;
702 * Called from disp() with the newly selected lwp.
709 klwp_t *lwp;
725 if ((lwp = ttolwp(t)) == NULL)
730 ms = &lwp->lwp_mstate;
800 * Copy lwp microstate accounting and resource usage information
801 * to the process. (lwp is terminating)
808 klwp_t *lwp = ttolwp(t);
814 ms = &lwp->lwp_mstate;
825 p->p_ru.minflt += lwp->lwp_ru.minflt;
826 p->p_ru.majflt += lwp->lwp_ru.majflt;
827 p->p_ru.nswap += lwp->lwp_ru.nswap;
828 p->p_ru.inblock += lwp->lwp_ru.inblock;
829 p->p_ru.oublock += lwp->lwp_ru.oublock;
830 p->p_ru.msgsnd += lwp->lwp_ru.msgsnd;
831 p->p_ru.msgrcv += lwp->lwp_ru.msgrcv;
832 p->p_ru.nsignals += lwp->lwp_ru.nsignals;
833 p->p_ru.nvcsw += lwp->lwp_ru.nvcsw;
834 p->p_ru.nivcsw += lwp->lwp_ru.nivcsw;
835 p->p_ru.sysc += lwp->lwp_ru.sysc;
836 p->p_ru.ioch += lwp->lwp_ru.ioch;