Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/
Dtest_memcontrol.c42 if (cg_write(parent, "cgroup.subtree_control", "+memory")) in test_memcg_subtree_control()
297 if (cg_write(parent[0], "cgroup.subtree_control", "+memory")) in test_memcg_min()
300 if (cg_write(parent[0], "memory.max", "200M")) in test_memcg_min()
303 if (cg_write(parent[0], "memory.swap.max", "0")) in test_memcg_min()
309 if (cg_write(parent[1], "cgroup.subtree_control", "+memory")) in test_memcg_min()
330 if (cg_write(parent[0], "memory.min", "50M")) in test_memcg_min()
332 if (cg_write(parent[1], "memory.min", "50M")) in test_memcg_min()
334 if (cg_write(children[0], "memory.min", "75M")) in test_memcg_min()
336 if (cg_write(children[1], "memory.min", "25M")) in test_memcg_min()
338 if (cg_write(children[2], "memory.min", "500M")) in test_memcg_min()
[all …]
Dtest_core.c293 if (cg_write(parent, "cgroup.type", "threaded")) in test_cgcore_invalid_domain()
351 if (cg_write(child, "cgroup.type", "threaded")) in test_cgcore_parent_becomes_threaded()
380 cg_write(root, "cgroup.subtree_control", "+cpu")) { in test_cgcore_no_internal_process_constraint_on_threads()
396 if (cg_write(parent, "cgroup.type", "threaded")) in test_cgcore_no_internal_process_constraint_on_threads()
399 if (cg_write(child, "cgroup.type", "threaded")) in test_cgcore_no_internal_process_constraint_on_threads()
402 if (cg_write(parent, "cgroup.subtree_control", "+cpu")) in test_cgcore_no_internal_process_constraint_on_threads()
442 if (!cg_write(child, "cgroup.subtree_control", "+memory")) in test_cgcore_top_down_constraint_enable()
477 if (cg_write(parent, "cgroup.subtree_control", "+memory")) in test_cgcore_top_down_constraint_disable()
480 if (cg_write(child, "cgroup.subtree_control", "+memory")) in test_cgcore_top_down_constraint_disable()
483 if (!cg_write(parent, "cgroup.subtree_control", "-memory")) in test_cgcore_top_down_constraint_disable()
[all …]
Dtest_kmem.c72 cg_write(cg, "memory.high", "1M"); in test_kmem_basic()
176 if (cg_write(parent, "cgroup.subtree_control", "+memory")) in test_kmem_memcg_deletion()
316 if (cg_write(parent, "cgroup.subtree_control", "+memory")) in test_kmem_dead_cgroups()
363 if (cg_write(parent, "cgroup.subtree_control", "+memory")) in test_percpu_basic()
431 if (cg_write(root, "cgroup.subtree_control", "+memory")) in main()
Dcgroup_util.c178 int cg_write(const char *cgroup, const char *control, char *buf) in cg_write() function
297 return cg_write(cgroup, "cgroup.procs", pidbuf); in cg_enter()
302 return cg_write(cgroup, "cgroup.procs", "0"); in cg_enter_current()
307 return cg_write(cgroup, "cgroup.threads", "0"); in cg_enter_current_thread()
323 if (cg_write(cgroup, "cgroup.procs", buf)) in cg_run()
446 if (cg_write(cgroup, "cgroup.procs", buf)) in cg_run_nowait()
Dcgroup_util.h34 extern int cg_write(const char *cgroup, const char *control, char *buf);
Dtest_freezer.c54 return cg_write(cgroup, "cgroup.freeze", freeze ? "1" : "0"); in cg_freeze_nowait()