• Home
  • Raw
  • Download

Lines Matching refs:root

27 static int test_memcg_subtree_control(const char *root)  in test_memcg_subtree_control()  argument
34 parent = cg_name(root, "memcg_test_0"); in test_memcg_subtree_control()
35 child = cg_name(root, "memcg_test_0/memcg_test_1"); in test_memcg_subtree_control()
52 parent2 = cg_name(root, "memcg_test_1"); in test_memcg_subtree_control()
53 child2 = cg_name(root, "memcg_test_1/memcg_test_1"); in test_memcg_subtree_control()
157 static int test_memcg_current(const char *root) in test_memcg_current() argument
163 memcg = cg_name(root, "memcg_test"); in test_memcg_current()
264 static int test_memcg_min(const char *root) in test_memcg_min() argument
277 parent[0] = cg_name(root, "memcg_test_0"); in test_memcg_min()
420 static int test_memcg_low(const char *root) in test_memcg_low() argument
434 parent[0] = cg_name(root, "memcg_test_0"); in test_memcg_low()
587 static int test_memcg_high(const char *root) in test_memcg_high() argument
593 memcg = cg_name(root, "memcg_test"); in test_memcg_high()
636 static int test_memcg_max(const char *root) in test_memcg_max() argument
642 memcg = cg_name(root, "memcg_test"); in test_memcg_max()
713 static int test_memcg_swap_max(const char *root) in test_memcg_swap_max() argument
722 memcg = cg_name(root, "memcg_test"); in test_memcg_swap_max()
777 static int test_memcg_oom_events(const char *root) in test_memcg_oom_events() argument
782 memcg = cg_name(root, "memcg_test"); in test_memcg_oom_events()
937 static int test_memcg_sock(const char *root) in test_memcg_sock() argument
943 memcg = cg_name(root, "memcg_test"); in test_memcg_sock()
1007 static int test_memcg_oom_group_leaf_events(const char *root) in test_memcg_oom_group_leaf_events() argument
1012 parent = cg_name(root, "memcg_test_0"); in test_memcg_oom_group_leaf_events()
1013 child = cg_name(root, "memcg_test_0/memcg_test_1"); in test_memcg_oom_group_leaf_events()
1069 static int test_memcg_oom_group_parent_events(const char *root) in test_memcg_oom_group_parent_events() argument
1074 parent = cg_name(root, "memcg_test_0"); in test_memcg_oom_group_parent_events()
1075 child = cg_name(root, "memcg_test_0/memcg_test_1"); in test_memcg_oom_group_parent_events()
1125 static int test_memcg_oom_group_score_events(const char *root) in test_memcg_oom_group_score_events() argument
1131 memcg = cg_name(root, "memcg_test_0"); in test_memcg_oom_group_score_events()
1175 int (*fn)(const char *root);
1195 char root[PATH_MAX]; in main() local
1198 if (cg_find_unified_root(root, sizeof(root))) in main()
1205 if (cg_read_strstr(root, "cgroup.controllers", "memory")) in main()
1208 if (cg_read_strstr(root, "cgroup.subtree_control", "memory")) in main()
1209 if (cg_write(root, "cgroup.subtree_control", "+memory")) in main()
1213 switch (tests[i].fn(root)) { in main()