aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/racct.h
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2018-11-29 05:08:46 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2018-11-29 05:08:46 +0000
commit64cf6a62d419ba4df40ebb12c0dd9130128e0724 (patch)
tree76eb199cecc19e24c63240fe68ab7e0b5f6652e4 /sys/sys/racct.h
parente272bf479b763fbe9bfe72877ccf8889434d4e87 (diff)
downloadsrc-64cf6a62d419ba4df40ebb12c0dd9130128e0724.tar.gz
src-64cf6a62d419ba4df40ebb12c0dd9130128e0724.zip
Deinline racct throttling out of syscall exit path.
racct is not enabled by default and even when it is enabled processes are typically not throttled. The order of checks is left unchanged since racct_enable will be annotated as __read_frequently, while checking for the flag in the processes would probably require an extra fetch. Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=341181
Diffstat (limited to 'sys/sys/racct.h')
-rw-r--r--sys/sys/racct.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/racct.h b/sys/sys/racct.h
index 84de705f24af..73ec04a0a0cd 100644
--- a/sys/sys/racct.h
+++ b/sys/sys/racct.h
@@ -194,6 +194,7 @@ void racct_proc_exit(struct proc *p);
void racct_proc_ucred_changed(struct proc *p, struct ucred *oldcred,
struct ucred *newcred);
void racct_move(struct racct *dest, struct racct *src);
+void racct_proc_throttled(struct proc *p);
void racct_proc_throttle(struct proc *p, int timeout);
#else