Lines Matching refs:p_racct

538 	racct_adjust_resource(p->p_racct, resource, amount);  in racct_add_locked()
653 old_amount = p->p_racct->r_resources[resource]; in racct_set_locked()
684 racct_adjust_resource(p->p_racct, resource, diff_proc); in racct_set_locked()
838 KASSERT(amount <= p->p_racct->r_resources[resource], in racct_sub()
841 (intmax_t)p->p_racct->r_resources[resource], p->p_comm, p->p_pid)); in racct_sub()
843 racct_adjust_resource(p->p_racct, resource, -amount); in racct_sub()
899 racct_create(&child->p_racct); in racct_proc_fork()
919 if (parent->p_racct->r_resources[i] == 0 || in racct_proc_fork()
924 parent->p_racct->r_resources[i], 0); in racct_proc_fork()
999 KASSERT(p->p_racct->r_resources[RACCT_RSS] == 0, in racct_proc_exit()
1001 p->p_racct->r_resources[RACCT_RSS])); in racct_proc_exit()
1003 if (p->p_racct->r_resources[i] == 0) in racct_proc_exit()
1011 rctl_racct_release(p->p_racct); in racct_proc_exit()
1013 racct_destroy_locked(&p->p_racct); in racct_proc_exit()
1044 racct_sub_racct(olduip->ui_racct, p->p_racct); in racct_proc_ucred_changed()
1045 racct_add_racct(newuip->ui_racct, p->p_racct); in racct_proc_ucred_changed()
1048 racct_sub_racct(oldlc->lc_racct, p->p_racct); in racct_proc_ucred_changed()
1049 racct_add_racct(newlc->lc_racct, p->p_racct); in racct_proc_ucred_changed()
1054 p->p_racct); in racct_proc_ucred_changed()
1057 p->p_racct); in racct_proc_ucred_changed()
1087 msleep(p->p_racct, &p->p_mtx, 0, "racct", in ast_racct()
1166 wakeup(p->p_racct); in racct_proc_wakeup()
1272 rctl_throttle_decay(p->p_racct, RACCT_READBPS); in racctd()
1273 rctl_throttle_decay(p->p_racct, RACCT_WRITEBPS); in racctd()
1274 rctl_throttle_decay(p->p_racct, RACCT_READIOPS); in racctd()
1275 rctl_throttle_decay(p->p_racct, RACCT_WRITEIOPS); in racctd()
1300 if (p->p_racct->r_resources[RACCT_PCTCPU] > in racctd()