Lines Matching full:children

268 	char *children[4] = {NULL};  in test_memcg_min()  local
315 for (i = 0; i < ARRAY_SIZE(children); i++) { in test_memcg_min()
316 children[i] = cg_name_indexed(parent[1], "child_memcg", i); in test_memcg_min()
317 if (!children[i]) in test_memcg_min()
320 if (cg_create(children[i])) in test_memcg_min()
326 cg_run_nowait(children[i], alloc_pagecache_50M_noexit, in test_memcg_min()
334 if (cg_write(children[0], "memory.min", "75M")) in test_memcg_min()
336 if (cg_write(children[1], "memory.min", "25M")) in test_memcg_min()
338 if (cg_write(children[2], "memory.min", "500M")) in test_memcg_min()
340 if (cg_write(children[3], "memory.min", "0")) in test_memcg_min()
357 for (i = 0; i < ARRAY_SIZE(children); i++) in test_memcg_min()
358 c[i] = cg_read_long(children[i], "memory.current"); in test_memcg_min()
378 for (i = ARRAY_SIZE(children) - 1; i >= 0; i--) { in test_memcg_min()
379 if (!children[i]) in test_memcg_min()
382 cg_destroy(children[i]); in test_memcg_min()
383 free(children[i]); in test_memcg_min()
424 char *children[4] = {NULL}; in test_memcg_low() local
470 for (i = 0; i < ARRAY_SIZE(children); i++) { in test_memcg_low()
471 children[i] = cg_name_indexed(parent[1], "child_memcg", i); in test_memcg_low()
472 if (!children[i]) in test_memcg_low()
475 if (cg_create(children[i])) in test_memcg_low()
481 if (cg_run(children[i], alloc_pagecache_50M, (void *)(long)fd)) in test_memcg_low()
489 if (cg_write(children[0], "memory.low", "75M")) in test_memcg_low()
491 if (cg_write(children[1], "memory.low", "25M")) in test_memcg_low()
493 if (cg_write(children[2], "memory.low", "500M")) in test_memcg_low()
495 if (cg_write(children[3], "memory.low", "0")) in test_memcg_low()
504 for (i = 0; i < ARRAY_SIZE(children); i++) in test_memcg_low()
505 c[i] = cg_read_long(children[i], "memory.current"); in test_memcg_low()
522 for (i = 0; i < ARRAY_SIZE(children); i++) { in test_memcg_low()
523 oom = cg_read_key_long(children[i], "memory.events", "oom "); in test_memcg_low()
524 low = cg_read_key_long(children[i], "memory.events", "low "); in test_memcg_low()
537 for (i = ARRAY_SIZE(children) - 1; i >= 0; i--) { in test_memcg_low()
538 if (!children[i]) in test_memcg_low()
541 cg_destroy(children[i]); in test_memcg_low()
542 free(children[i]); in test_memcg_low()