* Increase allocation of 'resource' by 'amount' for process 'p'. * Doesn't check for limits and never fails. */
| 594 | * Doesn't check for limits and never fails. |
| 595 | */ |
| 596 | void |
| 597 | racct_add_force(struct proc *p, int resource, uint64_t amount) |
| 598 | { |
| 599 | |
| 600 | if (!racct_enable) |
| 601 | return; |
| 602 | |
| 603 | SDT_PROBE3(racct, , rusage, add__force, p, resource, amount); |
| 604 | |
| 605 | RACCT_LOCK(); |
| 606 | racct_add_locked(p, resource, amount, 1); |
| 607 | RACCT_UNLOCK(); |
| 608 | } |
| 609 | |
| 610 | static void |
| 611 | racct_add_cred_locked(struct ucred *cred, int resource, uint64_t amount) |
no test coverage detected