| /tools/testing/selftests/cgroup/ |
| A D | test_memcontrol.c | 549 if (cg_write(parent[1], attribute, "50M")) in test_memcg_protection() 555 if (cg_write(children[2], attribute, "0")) in test_memcg_protection() 719 if (cg_write(memcg, "memory.high", "30M")) in test_memcg_high() 785 if (cg_write(memcg, "memory.high", "30M")) in test_memcg_high_sync() 788 if (cg_write(memcg, "memory.max", "140M")) in test_memcg_high_sync() 844 if (cg_write(memcg, "memory.max", "30M")) in test_memcg_max() 1113 if (cg_write(memcg, "memory.max", "30M")) in test_memcg_swap_max_peak() 1234 if (cg_write(memcg, "memory.max", "30M")) in test_memcg_oom_events() 1474 if (cg_write(child, "memory.max", "50M")) in test_memcg_oom_group_leaf_events() 1542 if (cg_write(parent, "memory.max", "80M")) in test_memcg_oom_group_parent_events() [all …]
|
| A D | test_zswap.c | 105 if (cg_write(group_name, "memory.max", "1M")) { in setup_test_group_1M() 129 if (cg_write(test_group, "memory.max", "1M")) in test_zswap_usage() 171 if (cg_write(test_group, "memory.max", "8M")) in test_swapin_nozswap() 173 if (cg_write(test_group, "memory.zswap.max", "0")) in test_swapin_nozswap() 223 if (cg_write(test_group, "memory.max", "8M")) in test_zswapin() 225 if (cg_write(test_group, "memory.zswap.max", "max")) in test_zswapin() 372 if (cg_write(test_group, "memory.zswap.max", "max")) in test_zswap_writeback() 374 if (cg_write(test_group, "cgroup.subtree_control", "+memory")) in test_zswap_writeback() 382 if (cg_write(test_group_child, "memory.zswap.writeback", "1")) in test_zswap_writeback() 424 if (cg_write(wb_group, "memory.zswap.max", "10K")) in test_no_invasive_cgroup_shrink() [all …]
|
| A D | test_pids.c | 45 if (cg_write(cg_pids, "pids.max", "2")) in test_pids_max() 87 if (cg_write(cg_parent, "cgroup.subtree_control", "+pids")) in test_pids_events() 92 if (cg_write(cg_parent, "pids.max", "2")) in test_pids_events() 160 if (cg_write(root, "cgroup.subtree_control", "+pids")) in main()
|
| A D | test_core.c | 306 if (cg_write(parent, "cgroup.type", "threaded")) in test_cgcore_invalid_domain() 367 if (cg_write(child, "cgroup.type", "threaded")) in test_cgcore_parent_becomes_threaded() 397 cg_write(root, "cgroup.subtree_control", "+cpu")) { in test_cgcore_no_internal_process_constraint_on_threads() 413 if (cg_write(parent, "cgroup.type", "threaded")) in test_cgcore_no_internal_process_constraint_on_threads() 416 if (cg_write(child, "cgroup.type", "threaded")) in test_cgcore_no_internal_process_constraint_on_threads() 419 if (cg_write(parent, "cgroup.subtree_control", "+cpu")) in test_cgcore_no_internal_process_constraint_on_threads() 462 if (!cg_write(child, "cgroup.subtree_control", "+memory")) in test_cgcore_top_down_constraint_enable() 500 if (cg_write(parent, "cgroup.subtree_control", "+memory")) in test_cgcore_top_down_constraint_disable() 503 if (cg_write(child, "cgroup.subtree_control", "+memory")) in test_cgcore_top_down_constraint_disable() 670 if (cg_write(grps[1], "cgroup.type", "threaded")) in test_cgcore_thread_migration() [all …]
|
| A D | test_cpuset.c | 41 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()
|
| A D | test_cpu.c | 53 if (cg_write(parent, "cgroup.subtree_control", "+cpu")) in test_cpucg_subtree_control() 280 if (cg_write(cpucg, "cgroup.procs", buf)) in test_cpucg_nice() 324 if (cg_write(parent, "cgroup.subtree_control", "+cpu")) in run_cpucg_weight_test() 507 if (cg_write(parent, "cgroup.subtree_control", "+cpu")) in run_cpucg_nested_weight_test() 512 if (cg_write(child, "cgroup.subtree_control", "+cpu")) in run_cpucg_nested_weight_test() 514 if (cg_write(child, "cpu.weight", "1000")) in run_cpucg_nested_weight_test() 667 if (cg_write(cpucg, "cpu.max", quota_buf)) in test_cpucg_max() 732 if (cg_write(parent, "cgroup.subtree_control", "+cpu")) in test_cpucg_max_nested() 738 if (cg_write(parent, "cpu.max", quota_buf)) in test_cpucg_max_nested() 805 if (cg_write(root, "cgroup.subtree_control", "+cpu")) in main()
|
| A D | test_kmem.c | 72 cg_write(cg, "memory.high", "1M"); in test_kmem_basic() 180 if (cg_write(parent, "cgroup.subtree_control", "+memory")) in test_kmem_memcg_deletion() 320 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()
|
| A D | test_hugetlb_memcg.c | 180 if (cg_write(test_group, "memory.max", "100M")) { in test_hugetlb_memcg() 186 if (cg_write(test_group, "memory.swap.max", "0")) { in test_hugetlb_memcg()
|
| A D | test_kill.c | 29 ret = cg_write(cgroup, "cgroup.kill", "1"); in cg_kill_wait()
|
| A D | test_freezer.c | 52 return cg_write(cgroup, "cgroup.freeze", freeze ? "1" : "0"); in cg_freeze_nowait()
|
| /tools/testing/selftests/cgroup/lib/ |
| A D | cgroup_util.c | 188 int cg_write(const char *cgroup, const char *control, char *buf) in cg_write() function 219 return cg_write(cgroup, control, buf); in cg_write_numeric() 309 if (!cg_write(cgroup, "cgroup.kill", "1")) in cg_killall() 356 return cg_write(cgroup, "cgroup.procs", pidbuf); in cg_enter() 361 return cg_write(cgroup, "cgroup.procs", "0"); in cg_enter_current() 366 return cg_write(cgroup, CG_THREADS_FILE, "0"); in cg_enter_current_thread() 382 if (cg_write(cgroup, "cgroup.procs", buf)) in cg_run() 505 if (cg_write(cgroup, "cgroup.procs", buf)) in cg_run_nowait()
|
| /tools/testing/selftests/cgroup/lib/include/ |
| A D | cgroup_util.h | 48 extern int cg_write(const char *cgroup, const char *control, char *buf);
|