Lines Matching full:children
404 char *children[4] = {NULL}; in test_memcg_protection() local
455 for (i = 0; i < ARRAY_SIZE(children); i++) { in test_memcg_protection()
456 children[i] = cg_name_indexed(parent[1], "child_memcg", i); in test_memcg_protection()
457 if (!children[i]) in test_memcg_protection()
460 if (cg_create(children[i])) in test_memcg_protection()
466 cg_run_nowait(children[i], alloc_pagecache_50M_noexit, in test_memcg_protection()
472 if (cg_write(children[0], attribute, "75M")) in test_memcg_protection()
474 if (cg_write(children[1], attribute, "25M")) in test_memcg_protection()
476 if (cg_write(children[2], attribute, "0")) in test_memcg_protection()
478 if (cg_write(children[3], attribute, "500M")) in test_memcg_protection()
495 for (i = 0; i < ARRAY_SIZE(children); i++) in test_memcg_protection()
496 c[i] = cg_read_long(children[i], "memory.current"); in test_memcg_protection()
520 if (!reclaim_until(children[0], MB(10))) in test_memcg_protection()
528 for (i = 0; i < ARRAY_SIZE(children); i++) { in test_memcg_protection()
532 oom = cg_read_key_long(children[i], "memory.events", "oom "); in test_memcg_protection()
533 low = cg_read_key_long(children[i], "memory.events", "low "); in test_memcg_protection()
547 for (i = ARRAY_SIZE(children) - 1; i >= 0; i--) { in test_memcg_protection()
548 if (!children[i]) in test_memcg_protection()
551 cg_destroy(children[i]); in test_memcg_protection()
552 free(children[i]); in test_memcg_protection()
1411 * count OOM events in its children groups. Otherwise, it should not in test_memcg_oom_group_leaf_events()