Lines Matching defs:root
39 static int test_cpucg_subtree_control(const char *root)
45 parent = cg_name(root, "cpucg_test_0");
66 parent2 = cg_name(root, "cpucg_test_1");
184 static int test_cpucg_stats(const char *root)
192 cpucg = cg_name(root, "cpucg_test");
237 static int test_cpucg_nice(const char *root)
247 cpucg = cg_name(root, "cpucg_test");
308 const char *root,
316 parent = cg_name(root, "cpucg_test_0");
429 static int test_cpucg_weight_overprovisioned(const char *root)
431 return run_cpucg_weight_test(root, weight_hog_all_cpus,
469 static int test_cpucg_weight_underprovisioned(const char *root)
476 return run_cpucg_weight_test(root, weight_hog_one_cpu,
481 run_cpucg_nested_weight_test(const char *root, bool overprovisioned)
499 parent = cg_name(root, "cpucg_test");
616 test_cpucg_nested_weight_overprovisioned(const char *root)
618 return run_cpucg_nested_weight_test(root, true);
636 test_cpucg_nested_weight_underprovisioned(const char *root)
638 return run_cpucg_nested_weight_test(root, false);
645 static int test_cpucg_max(const char *root)
653 cpucg = cg_name(root, "cpucg_test");
698 static int test_cpucg_max_nested(const char *root)
706 parent = cg_name(root, "cpucg_parent");
758 int (*fn)(const char *root);
775 char root[PATH_MAX];
778 if (cg_find_unified_root(root, sizeof(root), NULL))
781 if (cg_read_strstr(root, "cgroup.subtree_control", "cpu"))
782 if (cg_write(root, "cgroup.subtree_control", "+cpu"))
786 switch (tests[i].fn(root)) {