Home
last modified time | relevance | path

Searched refs:cg_write (Results 1 - 16 of 16) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/cgroup/
H A 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(childre in test_memcg_min()
[all...]
H A 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(paren in test_cgcore_top_down_constraint_disable()
[all...]
H A 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()
H A 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()
H A Dcgroup_util.h34 extern int cg_write(const char *cgroup, const char *control, char *buf);
H A Dtest_freezer.c54 return cg_write(cgroup, "cgroup.freeze", freeze ? "1" : "0"); in cg_freeze_nowait()
/kernel/linux/linux-6.6/tools/testing/selftests/cgroup/
H A Dtest_memcontrol.c46 if (cg_write(parent, "cgroup.subtree_control", "+memory")) in test_memcg_subtree_control()
325 if (cg_write(parent[0], "cgroup.subtree_control", "+memory")) in test_memcg_protection()
328 if (cg_write(parent[0], "memory.max", "200M")) in test_memcg_protection()
331 if (cg_write(parent[0], "memory.swap.max", "0")) in test_memcg_protection()
337 if (cg_write(parent[1], "cgroup.subtree_control", "+memory")) in test_memcg_protection()
358 if (cg_write(parent[1], attribute, "50M")) in test_memcg_protection()
360 if (cg_write(children[0], attribute, "75M")) in test_memcg_protection()
362 if (cg_write(children[1], attribute, "25M")) in test_memcg_protection()
364 if (cg_write(children[2], attribute, "0")) in test_memcg_protection()
366 if (cg_write(childre in test_memcg_protection()
[all...]
H A 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(paren in test_cgcore_top_down_constraint_disable()
[all...]
H A Dtest_cpu.c51 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()
H A Dcgroup_util.c176 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()
310 return cg_write(cgroup, "cgroup.procs", pidbuf); in cg_enter()
315 return cg_write(cgroup, "cgroup.procs", "0"); in cg_enter_current()
320 return cg_write(cgroup, "cgroup.threads", "0"); in cg_enter_current_thread()
336 if (cg_write(cgroup, "cgroup.procs", buf)) in cg_run()
459 if (cg_write(cgroup, "cgroup.procs", buf)) in cg_run_nowait()
H A Dtest_zswap.c91 if (cg_write(test_group, "memory.max", "1M")) in test_no_invasive_cgroup_shrink()
93 if (cg_write(test_group, "memory.zswap.max", "10K")) in test_no_invasive_cgroup_shrink()
180 if (cg_write(root, "cgroup.subtree_control", "+memory")) in test_no_kmem_bypass()
267 if (cg_write(root, "cgroup.subtree_control", "+memory")) in main()
H A Dtest_cpuset.c41 if (cg_write(parent, "cgroup.subtree_control", "+cpuset")) in do_controller_fn()
47 if (cg_write(parent, "cgroup.subtree_control", "-cpuset")) in do_controller_fn()
100 if (cg_write(parent, "cgroup.subtree_control", "+cpuset")) in test_cpuset_perms_object()
256 if (cg_write(root, "cgroup.subtree_control", "+cpuset")) in main()
H A Dtest_kmem.c72 cg_write(cg, "memory.high", "1M"); in test_kmem_basic()
180 if (cg_write(parent, "cgroup.subtree_control", "+memory")) in test_kmem_memcg_deletion()
319 if (cg_write(parent, "cgroup.subtree_control", "+memory")) in test_kmem_dead_cgroups()
366 if (cg_write(parent, "cgroup.subtree_control", "+memory")) in test_percpu_basic()
434 if (cg_write(root, "cgroup.subtree_control", "+memory")) in main()
H A Dcgroup_util.h39 extern int cg_write(const char *cgroup, const char *control, char *buf);
H A Dtest_kill.c29 ret = cg_write(cgroup, "cgroup.kill", "1"); in cg_kill_wait()
H A Dtest_freezer.c52 return cg_write(cgroup, "cgroup.freeze", freeze ? "1" : "0"); in cg_freeze_nowait()

Completed in 10 milliseconds