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

/darwin-on-arm/xnu/bsd/sys/
H A Dresourcevar.h125 (proc_is64bit((p)) ? (p)->p_stats->user_p_prof.pr_addr \
126 : CAST_USER_ADDR_T((p)->p_stats->p_prof.pr_addr)), \
127 (proc_is64bit((p)) ? (p)->p_stats->user_p_prof.pr_ticks \
128 : (p)->p_stats->p_prof.pr_ticks))
H A Dproc_internal.h242 struct pstats *p_stats; /* Accounting/statistics (PL). */ member in struct:proc
/darwin-on-arm/xnu/bsd/kern/
H A Dkern_fork.c1063 FREE_ZONE(p->p_stats, sizeof *p->p_stats, M_PSTATS);
1102 MALLOC_ZONE(child_proc->p_stats, struct pstats *,
1103 sizeof *child_proc->p_stats, M_PSTATS, M_WAITOK);
1104 if (child_proc->p_stats == NULL) {
1105 printf("forkproc: M_SUBPROC zone exhausted (p_stats)\n");
1114 FREE_ZONE(child_proc->p_stats, sizeof *child_proc->p_stats, M_PSTATS);
1124 FREE_ZONE(child_proc->p_stats, sizeof *child_proc->p_stats, M_PSTAT
[all...]
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_exit.c738 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);
748 struct uprof *p0 = &p->p_stats->p_prof, *p1, *pn;
779 FREE_ZONE(p->p_stats, sizeof *p->p_stats, M_PSTATS);
780 p->p_stats = NULL;
826 ruadd(&pp->p_stats->p_cru, p->p_ru);
1023 ruadd(&parent->p_stats
[all...]
H A Dkern_resource.c989 p->p_stats->p_ru.ru_minflt = (teventsinfo.faults -
991 p->p_stats->p_ru.ru_majflt = teventsinfo.pageins;
992 p->p_stats->p_ru.ru_nivcsw = (teventsinfo.csw -
993 p->p_stats->p_ru.ru_nvcsw);
994 if (p->p_stats->p_ru.ru_nivcsw < 0)
995 p->p_stats->p_ru.ru_nivcsw = 0;
997 p->p_stats->p_ru.ru_maxrss = tinfo.resident_size_max;
1021 rup = &p->p_stats->p_ru;
1032 rup = &p->p_stats->p_cru;
H A Dkern_clock.c347 tv = &(p->p_stats->p_ru.ru_stime);
369 st = p->p_stats->p_ru.ru_stime;
H A Dkern_synch.c175 if (p->p_stats != NULL)
176 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_nvcsw);
H A Dkern_acct.c257 rup = p->p_stats->p_ru;
H A Dbsd_init.c625 kernproc->p_stats = &pstats0;
936 kernproc->p_stats->p_start = kernproc->p_start; /* for compat */
H A Duipc_socket.c1560 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_msgsnd);
2122 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_msgrcv);
H A Dkern_sig.c2772 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_nsignals);
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_bio.c2087 if (p && p->p_stats)
2088 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_inblock); /* XXX */
2223 if (p && p->p_stats)
2224 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_oublock); /* XXX */
2248 if (p && p->p_stats)
2249 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_oublock); /* XXX */
2304 if (p && p->p_stats)
2305 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_oublock); /* XXX */
/darwin-on-arm/xnu/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.c3029 if (p && p->p_stats)
3030 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_oublock);

Completed in 192 milliseconds