Home
last modified time | relevance | path

Searched refs:cg_write (Results 1 – 4 of 4) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/cgroup/
Dtest_memcontrol.c42 if (cg_write(parent, "cgroup.subtree_control", "+memory")) in test_memcg_subtree_control()
293 if (cg_write(parent[0], "cgroup.subtree_control", "+memory")) in test_memcg_min()
296 if (cg_write(parent[0], "memory.max", "200M")) in test_memcg_min()
299 if (cg_write(parent[0], "memory.swap.max", "0")) in test_memcg_min()
305 if (cg_write(parent[1], "cgroup.subtree_control", "+memory")) in test_memcg_min()
326 if (cg_write(parent[0], "memory.min", "50M")) in test_memcg_min()
328 if (cg_write(parent[1], "memory.min", "50M")) in test_memcg_min()
330 if (cg_write(children[0], "memory.min", "75M")) in test_memcg_min()
332 if (cg_write(children[1], "memory.min", "25M")) in test_memcg_min()
334 if (cg_write(children[2], "memory.min", "500M")) in test_memcg_min()
[all …]
Dtest_core.c124 if (cg_write(parent, "cgroup.type", "threaded")) in test_cgcore_invalid_domain()
172 if (cg_write(child, "cgroup.type", "threaded")) in test_cgcore_parent_becomes_threaded()
217 if (cg_write(parent, "cgroup.type", "threaded")) in test_cgcore_no_internal_process_constraint_on_threads()
220 if (cg_write(child, "cgroup.type", "threaded")) in test_cgcore_no_internal_process_constraint_on_threads()
223 if (cg_write(parent, "cgroup.subtree_control", "+cpu")) in test_cgcore_no_internal_process_constraint_on_threads()
263 if (!cg_write(child, "cgroup.subtree_control", "+memory")) in test_cgcore_top_down_constraint_enable()
298 if (cg_write(parent, "cgroup.subtree_control", "+memory")) in test_cgcore_top_down_constraint_disable()
301 if (cg_write(child, "cgroup.subtree_control", "+memory")) in test_cgcore_top_down_constraint_disable()
304 if (!cg_write(parent, "cgroup.subtree_control", "-memory")) in test_cgcore_top_down_constraint_disable()
339 if (cg_write(parent, "cgroup.subtree_control", "+memory")) in test_cgcore_internal_process_constraint()
Dcgroup_util.c151 int cg_write(const char *cgroup, const char *control, char *buf) in cg_write() function
248 return cg_write(cgroup, "cgroup.procs", pidbuf); in cg_enter_current()
264 if (cg_write(cgroup, "cgroup.procs", buf)) in cg_run()
287 if (cg_write(cgroup, "cgroup.procs", buf)) in cg_run_nowait()
Dcgroup_util.h31 extern int cg_write(const char *cgroup, const char *control, char *buf);