Home | History | Annotate | Download | only in cgroup

Lines Matching refs:child

29 	char *parent, *child, *parent2, *child2;
35 child = cg_name(root, "memcg_test_0/memcg_test_1");
36 if (!parent || !child)
45 if (cg_create(child))
48 if (cg_read_strstr(child, "cgroup.controllers", "memory"))
72 cg_destroy(child);
75 free(child);
1006 char *parent, *child;
1009 child = cg_name(root, "memcg_test_0/memcg_test_1");
1011 if (!parent || !child)
1017 if (cg_create(child))
1023 if (cg_write(child, "memory.max", "50M"))
1026 if (cg_write(child, "memory.swap.max", "0"))
1029 if (cg_write(child, "memory.oom.group", "1"))
1033 cg_run_nowait(child, alloc_anon_noexit, (void *) MB(1));
1034 cg_run_nowait(child, alloc_anon_noexit, (void *) MB(1));
1035 if (!cg_run(child, alloc_anon, (void *)MB(100)))
1038 if (cg_test_proc_killed(child))
1041 if (cg_read_key_long(child, "memory.events", "oom_kill ") <= 0)
1050 if (child)
1051 cg_destroy(child);
1054 free(child);
1068 char *parent, *child;
1071 child = cg_name(root, "memcg_test_0/memcg_test_1");
1073 if (!parent || !child)
1079 if (cg_create(child))
1092 cg_run_nowait(child, alloc_anon_noexit, (void *) MB(1));
1093 cg_run_nowait(child, alloc_anon_noexit, (void *) MB(1));
1095 if (!cg_run(child, alloc_anon, (void *)MB(100)))
1098 if (cg_test_proc_killed(child))
1106 if (child)
1107 cg_destroy(child);
1110 free(child);