Searched refs:p_stats (Results 1 - 17 of 17) sorted by relevance

/xnu-2782.1.97/bsd/sys/
H A Dresourcevar.h124 (proc_is64bit((p)) ? (p)->p_stats->user_p_prof.pr_addr \
125 : CAST_USER_ADDR_T((p)->p_stats->p_prof.pr_addr)), \
126 (proc_is64bit((p)) ? (p)->p_stats->user_p_prof.pr_ticks \
127 : (p)->p_stats->p_prof.pr_ticks))
H A Dproc_internal.h244 struct pstats *p_stats; /* Accounting/statistics (PL). */ member in struct:proc
/xnu-2782.1.97/bsd/kern/
H A Dsubr_prof.c384 for (prof = &p->p_stats->user_p_prof; prof; prof = prof->pr_next) {
394 p->p_stats->user_p_prof.pr_scale = 0;
404 for (prof = &p->p_stats->p_prof; prof; prof = prof->pr_next) {
414 p->p_stats->p_prof.pr_scale = 0;
H A Dkern_fork.c1095 FREE_ZONE(p->p_stats, sizeof *p->p_stats, M_PSTATS);
1134 MALLOC_ZONE(child_proc->p_stats, struct pstats *,
1135 sizeof *child_proc->p_stats, M_PSTATS, M_WAITOK);
1136 if (child_proc->p_stats == NULL) {
1137 printf("forkproc: M_SUBPROC zone exhausted (p_stats)\n");
1146 FREE_ZONE(child_proc->p_stats, sizeof *child_proc->p_stats, M_PSTATS);
1156 FREE_ZONE(child_proc->p_stats, sizeof *child_proc->p_stats, M_PSTAT
[all...]
H A Dkern_exit.c821 calcru(p, &p->p_stats->p_ru.ru_utime, &p->p_stats->p_ru.ru_stime, NULL);
822 p->p_ru->ru = p->p_stats->p_ru;
824 ruadd(&(p->p_ru->ru), &p->p_stats->p_cru);
831 struct uprof *p0 = &p->p_stats->p_prof, *p1, *pn;
862 FREE_ZONE(p->p_stats, sizeof *p->p_stats, M_PSTATS);
863 p->p_stats = NULL;
910 ruadd(&pp->p_stats->p_cru, &p->p_ru->ru);
912 update_rusage_info_child(&pp->p_stats
[all...]
H A Dkern_clock.c372 tv = &(p->p_stats->p_ru.ru_stime);
394 st = p->p_stats->p_ru.ru_stime;
H A Dkern_resource.c1223 p->p_stats->p_ru.ru_minflt = (teventsinfo.faults -
1225 p->p_stats->p_ru.ru_majflt = teventsinfo.pageins;
1226 p->p_stats->p_ru.ru_nivcsw = (teventsinfo.csw -
1227 p->p_stats->p_ru.ru_nvcsw);
1228 if (p->p_stats->p_ru.ru_nivcsw < 0)
1229 p->p_stats->p_ru.ru_nivcsw = 0;
1231 p->p_stats->p_ru.ru_maxrss = tinfo.resident_size_max;
1255 rup = &p->p_stats->p_ru;
1266 rup = &p->p_stats->p_cru;
1691 assert(p->p_stats !
[all...]
H A Dkern_synch.c175 if (p->p_stats != NULL)
176 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_nvcsw);
H A Dkern_acct.c280 rup = p->p_stats->p_ru;
H A Dbsd_init.c624 kernproc->p_stats = &pstats0;
958 microtime_with_abstime(&kernproc->p_start, &kernproc->p_stats->ps_start);
H A Duipc_socket.c1840 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_msgsnd);
2249 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_msgsnd);
2751 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_msgrcv);
3650 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_msgrcv);
H A Dkern_sig.c2770 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_nsignals);
/xnu-2782.1.97/bsd/vfs/
H A Dvfs_bio.c2110 if (p && p->p_stats) {
2111 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_inblock); /* XXX */
2247 if (p && p->p_stats) {
2248 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_oublock); /* XXX */
2273 if (p && p->p_stats) {
2274 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_oublock); /* XXX */
2330 if (p && p->p_stats) {
2331 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_oublock); /* XXX */
/xnu-2782.1.97/bsd/netinet/
H A Dmptcp_usrreq.c1270 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_msgsnd);
H A Dmptcp_subr.c981 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_msgrcv);
/xnu-2782.1.97/bsd/nfs/
H A Dnfs_bio.c2319 if (p && p->p_stats)
2320 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_oublock);
H A Dnfs_vnops.c3326 if (p && p->p_stats)
3327 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_oublock);

Completed in 194 milliseconds