Lines Matching refs:root
40 static int test_cpucg_subtree_control(const char *root) in test_cpucg_subtree_control() argument
46 parent = cg_name(root, "cpucg_test_0"); in test_cpucg_subtree_control()
67 parent2 = cg_name(root, "cpucg_test_1"); in test_cpucg_subtree_control()
185 static int test_cpucg_stats(const char *root) in test_cpucg_stats() argument
193 cpucg = cg_name(root, "cpucg_test"); in test_cpucg_stats()
238 static int test_cpucg_nice(const char *root) in test_cpucg_nice() argument
248 cpucg = cg_name(root, "cpucg_test"); in test_cpucg_nice()
309 const char *root, in run_cpucg_weight_test() argument
317 parent = cg_name(root, "cpucg_test_0"); in run_cpucg_weight_test()
430 static int test_cpucg_weight_overprovisioned(const char *root) in test_cpucg_weight_overprovisioned() argument
432 return run_cpucg_weight_test(root, weight_hog_all_cpus, in test_cpucg_weight_overprovisioned()
470 static int test_cpucg_weight_underprovisioned(const char *root) in test_cpucg_weight_underprovisioned() argument
477 return run_cpucg_weight_test(root, weight_hog_one_cpu, in test_cpucg_weight_underprovisioned()
482 run_cpucg_nested_weight_test(const char *root, bool overprovisioned) in run_cpucg_nested_weight_test() argument
500 parent = cg_name(root, "cpucg_test"); in run_cpucg_nested_weight_test()
617 test_cpucg_nested_weight_overprovisioned(const char *root) in test_cpucg_nested_weight_overprovisioned() argument
619 return run_cpucg_nested_weight_test(root, true); in test_cpucg_nested_weight_overprovisioned()
637 test_cpucg_nested_weight_underprovisioned(const char *root) in test_cpucg_nested_weight_underprovisioned() argument
639 return run_cpucg_nested_weight_test(root, false); in test_cpucg_nested_weight_underprovisioned()
646 static int test_cpucg_max(const char *root) in test_cpucg_max() argument
660 cpucg = cg_name(root, "cpucg_test"); in test_cpucg_max()
710 static int test_cpucg_max_nested(const char *root) in test_cpucg_max_nested() argument
724 parent = cg_name(root, "cpucg_parent"); in test_cpucg_max_nested()
781 int (*fn)(const char *root);
798 char root[PATH_MAX]; in main() local
801 if (cg_find_unified_root(root, sizeof(root), NULL)) in main()
804 if (cg_read_strstr(root, "cgroup.subtree_control", "cpu")) in main()
805 if (cg_write(root, "cgroup.subtree_control", "+cpu")) in main()
809 switch (tests[i].fn(root)) { in main()