aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/rctl.h
diff options
context:
space:
mode:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>2012-10-26 16:01:08 +0000
committerEdward Tomasz Napierala <trasz@FreeBSD.org>2012-10-26 16:01:08 +0000
commit36af98697d92141dcd4f4cca56da38a426ccb089 (patch)
tree842a8cfc3ef8239e42a28dbb369918bc9a00b13e /sys/sys/rctl.h
parent6cff4e07c15477db7747f98dc7ecbedfe7563d40 (diff)
downloadsrc-36af98697d92141dcd4f4cca56da38a426ccb089.tar.gz
src-36af98697d92141dcd4f4cca56da38a426ccb089.zip
Add CPU percentage limit enforcement to RCTL. The resouce name is "pcpu".
It was implemented by Rudolf Tomori during Google Summer of Code 2012.
Notes
Notes: svn path=/head/; revision=242139
Diffstat (limited to 'sys/sys/rctl.h')
-rw-r--r--sys/sys/rctl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/rctl.h b/sys/sys/rctl.h
index 1e0342732b80..e1a45a4949fa 100644
--- a/sys/sys/rctl.h
+++ b/sys/sys/rctl.h
@@ -140,6 +140,7 @@ void rctl_rule_release(struct rctl_rule *rule);
int rctl_rule_add(struct rctl_rule *rule);
int rctl_rule_remove(struct rctl_rule *filter);
int rctl_enforce(struct proc *p, int resource, uint64_t amount);
+int64_t rctl_pcpu_available(const struct proc *p);
uint64_t rctl_get_limit(struct proc *p, int resource);
uint64_t rctl_get_available(struct proc *p, int resource);
const char *rctl_resource_name(int resource);