[Devel] [PATCH libvzctl 2/2] cgroup: Add missing controllers into the set

Cyrill Gorcunov gorcunov at openvz.org
Sat Jan 23 08:16:42 PST 2016


We're rewritting the roots for them in criu
so make sure "vzctl enter" does the same
and put tasks into proper cgroups.

https://jira.sw.ru/browse/PSBM-43256

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 lib/cgroup.c | 2 ++
 lib/cgroup.h | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/lib/cgroup.c b/lib/cgroup.c
index bf43955..a21b236 100644
--- a/lib/cgroup.c
+++ b/lib/cgroup.c
@@ -56,6 +56,8 @@ static struct cg_ctl cg_ctl_map[] = {
 	{CG_FREEZER},
 	{CG_UB, 1},
 	{CG_VE, 1},
+	{CG_PERF_EVENT},
+	{CG_HUGETLB},
 	{"systemd"},
 };
 
diff --git a/lib/cgroup.h b/lib/cgroup.h
index 3724d97..6118cc4 100644
--- a/lib/cgroup.h
+++ b/lib/cgroup.h
@@ -32,6 +32,8 @@
 #define CG_UB		"beancounter"
 #define CG_BLKIO	"blkio"
 #define CG_FREEZER	"freezer"
+#define CG_PERF_EVENT	"perf_event"
+#define CG_HUGETLB	"hugetlb"
 
 #define CG_MEM_LIMIT	"memory.limit_in_bytes"
 #define CG_SWAP_LIMIT	"memory.memsw.limit_in_bytes"
-- 
2.5.0



More information about the Devel mailing list