Lines Matching refs:p_ru
517 MALLOC_ZONE(p->p_ru, struct rusage *,
518 sizeof (*p->p_ru), M_ZOMBIE, M_WAITOK);
737 if (p->p_ru != NULL) {
738 calcru(p, &p->p_stats->p_ru.ru_utime, &p->p_stats->p_ru.ru_stime, NULL);
739 *p->p_ru = p->p_stats->p_ru;
741 ruadd(p->p_ru, &p->p_stats->p_cru);
824 if (p->p_ru != NULL) {
826 ruadd(&pp->p_stats->p_cru, p->p_ru);
1011 if (child->p_ru) {
1023 ruadd(&parent->p_stats->p_cru, child->p_ru);
1025 FREE_ZONE(child->p_ru, sizeof *child->p_ru, M_ZOMBIE);
1026 child->p_ru = NULL;
1028 printf("Warning : lost p_ru for %s\n", child->p_comm);
1187 if (p->p_ru == NULL) {
1192 munge_user64_rusage(p->p_ru, &my_rusage);
1199 munge_user32_rusage(p->p_ru, &my_rusage);
1709 MALLOC_ZONE(p->p_ru, struct rusage *,
1710 sizeof (*p->p_ru), M_ZOMBIE, M_WAITOK);
1865 if (p->p_ru != NULL) {
1866 *p->p_ru = p->p_stats->p_ru;
1867 timerclear(&p->p_ru->ru_utime);
1868 timerclear(&p->p_ru->ru_stime);
1880 p->p_ru->ru_utime.tv_sec = tinfo.user_time.seconds;
1881 p->p_ru->ru_utime.tv_usec = tinfo.user_time.microseconds;
1882 p->p_ru->ru_stime.tv_sec = tinfo.system_time.seconds;
1883 p->p_ru->ru_stime.tv_usec = tinfo.system_time.microseconds;
1893 timeradd(&ut,&p->p_ru->ru_utime,&p->p_ru->ru_utime);
1894 timeradd(&st,&p->p_ru->ru_stime,&p->p_ru->ru_stime);
1898 ruadd(p->p_ru, &p->p_stats->p_cru);