diff options
author | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2015-04-29 10:23:02 +0000 |
---|---|---|
committer | Edward Tomasz Napierala <trasz@FreeBSD.org> | 2015-04-29 10:23:02 +0000 |
commit | 4b5c9cf62f33d8359a272dda846930aaa7c635f8 (patch) | |
tree | 59650c7275c65023f54e8bff435945b07bc2714a /sys/sys/racct.h | |
parent | da2f98a1cf890caeb84b303d3bd94da2b518785c (diff) | |
download | src-4b5c9cf62f33d8359a272dda846930aaa7c635f8.tar.gz src-4b5c9cf62f33d8359a272dda846930aaa7c635f8.zip |
Add kern.racct.enable tunable and RACCT_DISABLED config option.
The point of this is to be able to add RACCT (with RACCT_DISABLED)
to GENERIC, to avoid having to rebuild the kernel to use rctl(8).
Differential Revision: https://reviews.freebsd.org/D2369
Reviewed by: kib@
MFC after: 1 month
Relnotes: yes
Sponsored by: The FreeBSD Foundation
Notes
Notes:
svn path=/head/; revision=282213
Diffstat (limited to 'sys/sys/racct.h')
-rw-r--r-- | sys/sys/racct.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/sys/racct.h b/sys/sys/racct.h index 966d27a11183..313d5d05de96 100644 --- a/sys/sys/racct.h +++ b/sys/sys/racct.h @@ -83,6 +83,10 @@ struct ucred; #define RACCT_DECAYING 0x20 extern int racct_types[]; +extern int racct_enable; + +#define ASSERT_RACCT_ENABLED() KASSERT(racct_enable, \ + ("%s called with !racct_enable", __func__)) /* * Amount stored in c_resources[] is 10**6 times bigger than what's |