Lines Matching defs:cgroup
22 * Memory cgroup charging and vmstat data aggregation is performed using
30 static int alloc_dcache(const char *cgroup, void *arg)
96 static int alloc_kmem_smp(const char *cgroup, void *arg)
126 int (*fn)(const char *cgroup, void *arg),
157 * The test creates and destroys a large number of cgroups. In each cgroup it
176 if (cg_write(parent, "cgroup.subtree_control", "+memory"))
242 static int spawn_1000_threads(const char *cgroup, void *arg)
262 stack = cg_read_key_long(cgroup, "memory.stat", "kernel_stack ");
316 if (cg_write(parent, "cgroup.subtree_control", "+memory"))
323 dead = cg_read_key_long(parent, "cgroup.stat",
363 if (cg_write(parent, "cgroup.subtree_control", "+memory"))
421 ksft_exit_skip("cgroup v2 isn't mounted\n");
425 * memory is listed in cgroup.controllers
427 if (cg_read_strstr(root, "cgroup.controllers", "memory"))
430 if (cg_read_strstr(root, "cgroup.subtree_control", "memory"))
431 if (cg_write(root, "cgroup.subtree_control", "+memory"))