• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.5.8/xnu-1228.15.4/bsd/kern/

Lines Matching refs:p_ru

401 	MALLOC_ZONE(p->p_ru, struct rusage *,
402 sizeof (*p->p_ru), M_ZOMBIE, M_WAITOK);
590 if (p->p_ru != NULL) {
591 *p->p_ru = p->p_stats->p_ru;
593 timerclear(&p->p_ru->ru_utime);
594 timerclear(&p->p_ru->ru_stime);
607 p->p_ru->ru_utime.tv_sec = tinfo.user_time.seconds;
608 p->p_ru->ru_utime.tv_usec = tinfo.user_time.microseconds;
609 p->p_ru->ru_stime.tv_sec = tinfo.system_time.seconds;
610 p->p_ru->ru_stime.tv_usec = tinfo.system_time.microseconds;
612 p->p_ru->ru_maxrss = tinfo.resident_size;
622 timeradd(&ut,&p->p_ru->ru_utime,&p->p_ru->ru_utime);
623 timeradd(&st,&p->p_ru->ru_stime,&p->p_ru->ru_stime);
629 p->p_ru->ru_minflt = (teventsinfo.faults -
631 p->p_ru->ru_majflt = teventsinfo.pageins;
632 p->p_ru->ru_nivcsw = (teventsinfo.csw -
633 p->p_ru->ru_nvcsw);
634 if (p->p_ru->ru_nivcsw < 0)
635 p->p_ru->ru_nivcsw = 0;
638 ruadd(p->p_ru, &p->p_stats->p_cru);
720 if (p->p_ru != NULL) {
722 ruadd(&pp->p_stats->p_cru, p->p_ru);
866 if (child->p_ru) {
878 ruadd(&parent->p_stats->p_cru, child->p_ru);
880 FREE_ZONE(child->p_ru, sizeof *child->p_ru, M_ZOMBIE);
881 child->p_ru = NULL;
883 printf("Warning : lost p_ru for %s\n", child->p_comm);
1022 if (p->p_ru == NULL) {
1027 munge_rusage(p->p_ru, &my_rusage);
1033 error = copyout((caddr_t)p->p_ru,
1611 MALLOC_ZONE(p->p_ru, struct rusage *,
1612 sizeof (*p->p_ru), M_ZOMBIE, M_WAITOK);
1769 if (p->p_ru != NULL) {
1770 *p->p_ru = p->p_stats->p_ru;
1771 timerclear(&p->p_ru->ru_utime);
1772 timerclear(&p->p_ru->ru_stime);
1784 p->p_ru->ru_utime.tv_sec = tinfo.user_time.seconds;
1785 p->p_ru->ru_utime.tv_usec = tinfo.user_time.microseconds;
1786 p->p_ru->ru_stime.tv_sec = tinfo.system_time.seconds;
1787 p->p_ru->ru_stime.tv_usec = tinfo.system_time.microseconds;
1797 timeradd(&ut,&p->p_ru->ru_utime,&p->p_ru->ru_utime);
1798 timeradd(&st,&p->p_ru->ru_stime,&p->p_ru->ru_stime);
1802 ruadd(p->p_ru, &p->p_stats->p_cru);