Home
last modified time | relevance | path

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

/xnu-12377.41.6/bsd/kern/
H A Dkern_fork.c892 zfree(proc_stats_zone, p->p_stats); in forkproc_free()
893 p->p_stats = NULL; in forkproc_free()
937 child_proc->p_stats = zalloc_flags(proc_stats_zone, Z_WAITOK | Z_ZERO); in forkproc()
1125 child_proc->p_stats->ps_start = parent_proc->p_stats->ps_start; in forkproc()
1131 microtime_with_abstime(&child_proc->p_start, &child_proc->p_stats->ps_start); in forkproc()
H A Dkern_synch.c178 if (p->p_stats != NULL) { in _sleep()
179 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_nvcsw); in _sleep()
H A Dkern_resource.c1781 p->p_stats->p_ru.ru_minflt = teventsinfo.faults - in calcru()
1783 p->p_stats->p_ru.ru_majflt = teventsinfo.pageins; in calcru()
1784 p->p_stats->p_ru.ru_nivcsw = teventsinfo.csw - in calcru()
1785 p->p_stats->p_ru.ru_nvcsw; in calcru()
1786 if (p->p_stats->p_ru.ru_nivcsw < 0) { in calcru()
1787 p->p_stats->p_ru.ru_nivcsw = 0; in calcru()
1790 p->p_stats->p_ru.ru_maxrss = (long)tinfo.resident_size_max; in calcru()
1816 rup = &p->p_stats->p_ru; in getrusage()
1827 rup = &p->p_stats->p_cru; in getrusage()
3366 assert(p->p_stats != NULL); in gather_rusage_info()
[all …]
H A Dkern_clock.c346 st = p->p_stats->p_ru.ru_stime; in get_procrustime()
H A Dkern_exit.c2540 calcru(p, &p->p_stats->p_ru.ru_utime, &p->p_stats->p_ru.ru_stime, NULL); in proc_exit()
2541 p->p_ru->ru = p->p_stats->p_ru; in proc_exit()
2543 ruadd(&(p->p_ru->ru), &p->p_stats->p_cru); in proc_exit()
2550 struct uprof *p0 = &p->p_stats->p_prof, *p1, *pn; in proc_exit()
2567 zfree(proc_stats_zone, p->p_stats); in proc_exit()
2568 p->p_stats = NULL; in proc_exit()
2627 ruadd(&pp->p_stats->p_cru, &p->p_ru->ru); in proc_exit()
2629 update_rusage_info_child(&pp->p_stats->ri_child, &p->p_ru->ri); in proc_exit()
2836 ruadd(&parent->p_stats->p_cru, &child->p_ru->ru); in reap_child_locked()
2838 update_rusage_info_child(&parent->p_stats->ri_child, &child->p_ru->ri); in reap_child_locked()
H A Dkern_acct.c273 rup = p->p_stats->p_ru; in acct_process()
H A Dbsd_init.c662 kernproc->p_stats = &pstats0; in bsd_init()
997 microtime_with_abstime(&kernproc->p_start, &kernproc->p_stats->ps_start); in bsd_init()
H A Dkern_proc.c1637 if (pp->p_stats != NULL) { in proc_starttime_kdp()
1638 *abstime = pp->p_stats->ps_start; in proc_starttime_kdp()
1798 if (p && p->p_stats) { in proc_increment_ru_oublock()
1799 origval = OSIncrementAtomicLong(&p->p_stats->p_ru.ru_oublock); in proc_increment_ru_oublock()
H A Duipc_socket.c2127 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_msgsnd); in sosend()
2654 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_msgsnd); in sosend_list()
3515 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_msgrcv); in soreceive()
4135 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_msgrcv); in soreceive_m_list()
H A Dkern_sig.c3239 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_nsignals); in postsig_locked()
H A Dkern_memorystatus.c6109 assert(p->p_stats != NULL); in memorystatus_init_jetsam_snapshot_entry_locked()
6110 entry->jse_starttime = p->p_stats->ps_start; /* abstime process started */ in memorystatus_init_jetsam_snapshot_entry_locked()
/xnu-12377.41.6/bsd/vfs/
H A Dvfs_bio.c2439 if (p && p->p_stats) { in bio_doread()
2440 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_inblock); /* XXX */ in bio_doread()
2578 } else if (p && p->p_stats) { in buf_bwrite()
2579 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_oublock); /* XXX */ in buf_bwrite()
2603 } else if (p && p->p_stats) { in buf_bwrite()
2604 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_oublock); /* XXX */ in buf_bwrite()
2655 if (p && p->p_stats) { in bdwrite_internal()
2656 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_oublock); /* XXX */ in bdwrite_internal()
/xnu-12377.41.6/bsd/sys/
H A Dproc_internal.h315 struct pstats *p_stats; /* Accounting/statistics (PL) */ member
/xnu-12377.41.6/bsd/netinet/
H A Dmptcp_usrreq.c1285 OSIncrementAtomicLong(&p->p_stats->p_ru.ru_msgsnd); in mptcp_usr_sosend()
/xnu-12377.41.6/tools/lldbmacros/
H A Dprocess.py111 return p.p_stats.ps_start