Searched refs:cg_write (Results 1 – 8 of 8) sorted by relevance
/Linux-v6.1/tools/testing/selftests/cgroup/ |
D | test_memcontrol.c | 46 if (cg_write(parent, "cgroup.subtree_control", "+memory")) in test_memcg_subtree_control() 306 if (cg_write(parent[0], "cgroup.subtree_control", "+memory")) in test_memcg_protection() 309 if (cg_write(parent[0], "memory.max", "200M")) in test_memcg_protection() 312 if (cg_write(parent[0], "memory.swap.max", "0")) in test_memcg_protection() 318 if (cg_write(parent[1], "cgroup.subtree_control", "+memory")) in test_memcg_protection() 339 if (cg_write(parent[1], attribute, "50M")) in test_memcg_protection() 341 if (cg_write(children[0], attribute, "75M")) in test_memcg_protection() 343 if (cg_write(children[1], attribute, "25M")) in test_memcg_protection() 345 if (cg_write(children[2], attribute, "0")) in test_memcg_protection() 347 if (cg_write(children[3], attribute, "500M")) in test_memcg_protection() [all …]
|
D | test_core.c | 293 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 …]
|
D | test_cpu.c | 51 if (cg_write(parent, "cgroup.subtree_control", "+cpu")) in test_cpucg_subtree_control() 249 if (cg_write(parent, "cgroup.subtree_control", "+cpu")) in run_cpucg_weight_test() 432 if (cg_write(parent, "cgroup.subtree_control", "+cpu")) in run_cpucg_nested_weight_test() 437 if (cg_write(child, "cgroup.subtree_control", "+cpu")) in run_cpucg_nested_weight_test() 439 if (cg_write(child, "cpu.weight", "1000")) in run_cpucg_nested_weight_test() 586 if (cg_write(cpucg, "cpu.max", "1000")) in test_cpucg_max() 640 if (cg_write(parent, "cgroup.subtree_control", "+cpu")) in test_cpucg_max_nested() 646 if (cg_write(parent, "cpu.max", "1000")) in test_cpucg_max_nested() 707 if (cg_write(root, "cgroup.subtree_control", "+cpu")) in main()
|
D | cgroup_util.c | 176 int cg_write(const char *cgroup, const char *control, char *buf) in cg_write() function 195 return cg_write(cgroup, control, buf); in cg_write_numeric() 263 if (!cg_write(cgroup, "cgroup.kill", "1")) in cg_killall() 308 return cg_write(cgroup, "cgroup.procs", pidbuf); in cg_enter() 313 return cg_write(cgroup, "cgroup.procs", "0"); in cg_enter_current() 318 return cg_write(cgroup, "cgroup.threads", "0"); in cg_enter_current_thread() 334 if (cg_write(cgroup, "cgroup.procs", buf)) in cg_run() 457 if (cg_write(cgroup, "cgroup.procs", buf)) in cg_run_nowait()
|
D | test_kmem.c | 72 cg_write(cg, "memory.high", "1M"); in test_kmem_basic() 176 if (cg_write(parent, "cgroup.subtree_control", "+memory")) in test_kmem_memcg_deletion() 322 if (cg_write(parent, "cgroup.subtree_control", "+memory")) in test_kmem_dead_cgroups() 369 if (cg_write(parent, "cgroup.subtree_control", "+memory")) in test_percpu_basic() 437 if (cg_write(root, "cgroup.subtree_control", "+memory")) in main()
|
D | cgroup_util.h | 37 extern int cg_write(const char *cgroup, const char *control, char *buf);
|
D | test_kill.c | 29 ret = cg_write(cgroup, "cgroup.kill", "1"); in cg_kill_wait()
|
D | test_freezer.c | 52 return cg_write(cgroup, "cgroup.freeze", freeze ? "1" : "0"); in cg_freeze_nowait()
|