Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/cgroup/
H A Dtest_memcontrol.c126 if (cg_write(parent, "cgroup.subtree_control", "+memory")) in test_memcg_subtree_control()
518 if (cg_write(parent[0], "cgroup.subtree_control", "+memory")) in test_memcg_protection()
521 if (cg_write(parent[0], "memory.max", "200M")) in test_memcg_protection()
524 if (cg_write(parent[0], "memory.swap.max", "0")) in test_memcg_protection()
530 if (cg_write(parent[1], "cgroup.subtree_control", "+memory")) in test_memcg_protection()
551 if (cg_write(parent[1], attribute, "50M")) in test_memcg_protection()
553 if (cg_write(children[0], attribute, "75M")) in test_memcg_protection()
555 if (cg_write(children[1], attribute, "25M")) in test_memcg_protection()
557 if (cg_write(children[2], attribute, "0")) in test_memcg_protection()
559 if (cg_write(childre in test_memcg_protection()
[all...]
H A Dtest_zswap.c105 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()
363 if (cg_write(test_group, "memory.zswap.writeback", wb ? "1" : "0")) in test_zswap_writeback()
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()
[all …]
H A Dtest_core.c307 if (cg_write(parent, "cgroup.type", "threaded")) in test_cgcore_invalid_domain()
368 if (cg_write(child, "cgroup.type", "threaded")) in test_cgcore_parent_becomes_threaded()
398 cg_write(root, "cgroup.subtree_control", "+cpu")) { in test_cgcore_no_internal_process_constraint_on_threads()
414 if (cg_write(parent, "cgroup.type", "threaded")) in test_cgcore_no_internal_process_constraint_on_threads()
417 if (cg_write(child, "cgroup.type", "threaded")) in test_cgcore_no_internal_process_constraint_on_threads()
420 if (cg_write(parent, "cgroup.subtree_control", "+cpu")) in test_cgcore_no_internal_process_constraint_on_threads()
463 if (!cg_write(child, "cgroup.subtree_control", "+memory")) in test_cgcore_top_down_constraint_enable()
501 if (cg_write(parent, "cgroup.subtree_control", "+memory")) in test_cgcore_top_down_constraint_disable()
504 if (cg_write(child, "cgroup.subtree_control", "+memory")) in test_cgcore_top_down_constraint_disable()
507 if (!cg_write(parent, "cgroup.subtree_control", "-memory")) in test_cgcore_top_down_constraint_disable()
[all …]
H A Dtest_pids.c45 if (cg_write(cg_pids, "pids.max", "2")) in test_pids_max()
90 if (cg_write(cg_parent, "cgroup.subtree_control", "+pids")) in test_pids_events()
95 if (cg_write(cg_parent, "pids.max", "2")) in test_pids_events()
163 if (cg_write(root, "cgroup.subtree_control", "+pids")) in main()
H A Dtest_cpu.c53 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()
807 if (cg_write(root, "cgroup.subtree_control", "+cpu")) in main()
H A Dcgroup_util.c
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()
258 if (cg_write(root, "cgroup.subtree_control", "+cpuset")) in main()
H A Dtest_kmem.c73 cg_write(cg, "memory.high", "1M"); in test_kmem_basic()
181 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()
436 if (cg_write(root, "cgroup.subtree_control", "+memory")) in main()
H A Dtest_hugetlb_memcg.c180 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()
H A Dcgroup_util.h
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()
/linux/tools/testing/selftests/cgroup/lib/
H A Dcgroup_util.c224 int cg_write(const char *cgroup, const char *control, char *buf) in cg_write() function
255 return cg_write(cgroup, control, buf); in cg_write_numeric()
345 if (!cg_write(cgroup, "cgroup.kill", "1")) in cg_killall()
392 return cg_write(cgroup, "cgroup.procs", pidbuf); in cg_enter()
397 return cg_write(cgroup, "cgroup.procs", "0"); in cg_enter_current()
402 return cg_write(cgroup, CG_THREADS_FILE, "0"); in cg_enter_current_thread()
418 if (cg_write(cgroup, "cgroup.procs", buf)) in cg_run()
541 if (cg_write(cgroup, "cgroup.procs", buf)) in cg_run_nowait()
/linux/tools/testing/selftests/cgroup/lib/include/
H A Dcgroup_util.h75 extern int cg_write(const char *cgroup, const char *control, char *buf);