Home
last modified time | relevance | path

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

/linux/tools/testing/selftests/cgroup/
A Dtest_memcontrol.c330 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()
340 if (cg_write(children[3], "memory.min", "0")) in test_memcg_min()
603 if (cg_write(memcg, "memory.swap.max", "0")) in test_memcg_high()
606 if (cg_write(memcg, "memory.high", "30M")) in test_memcg_high()
655 if (cg_write(memcg, "memory.max", "30M")) in test_memcg_max()
743 if (cg_write(memcg, "memory.max", "30M")) in test_memcg_swap_max()
789 if (cg_write(memcg, "memory.max", "30M")) in test_memcg_oom_events()
1027 if (cg_write(child, "memory.max", "50M")) in test_memcg_oom_group_leaf_events()
1086 if (cg_write(parent, "memory.max", "80M")) in test_memcg_oom_group_parent_events()
[all …]
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()
643 if (cg_write(grps[1], "cgroup.type", "threaded")) in test_cgcore_thread_migration()
[all …]
A Dcgroup_util.c180 int cg_write(const char *cgroup, const char *control, char *buf) in cg_write() function
258 if (!cg_write(cgroup, "cgroup.kill", "1")) in cg_killall()
303 return cg_write(cgroup, "cgroup.procs", pidbuf); in cg_enter()
308 return cg_write(cgroup, "cgroup.procs", "0"); in cg_enter_current()
313 return cg_write(cgroup, "cgroup.threads", "0"); in cg_enter_current_thread()
329 if (cg_write(cgroup, "cgroup.procs", buf)) in cg_run()
452 if (cg_write(cgroup, "cgroup.procs", buf)) in cg_run_nowait()
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()
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()
A Dcgroup_util.h34 extern int cg_write(const char *cgroup, const char *control, char *buf);
A Dtest_kill.c29 ret = cg_write(cgroup, "cgroup.kill", "1"); in cg_kill_wait()
A Dtest_freezer.c52 return cg_write(cgroup, "cgroup.freeze", freeze ? "1" : "0"); in cg_freeze_nowait()

Completed in 15 milliseconds