Searched refs:cg_child (Results 1 - 2 of 2) sorted by relevance
/third_party/ltp/lib/newlib_tests/ |
H A D | tst_cgroup02.c | 17 static struct tst_cg_group *cg_child; variable 29 cg_child = tst_cg_group_mk(tst_cg, "child"); in do_test() 31 SAFE_CG_PRINTF(cg_child, "cgroup.procs", "%d", getpid()); in do_test() 33 SAFE_CG_SCANF(cg_child, "memory.current", "%zu", &mem); in do_test() 35 SAFE_CG_PRINTF(cg_child, "memory.max", in do_test() 37 SAFE_CG_PRINTF(cg_child, "memory.swap.max", in do_test() 40 SAFE_CG_READ(cg_child, "cpuset.mems", buf, sizeof(buf)); in do_test() 42 SAFE_CG_PRINT(cg_child, "cpuset.mems", buf); in do_test() 48 SAFE_CG_PRINTF(cg_child, "cgroup.procs", "%d", getpid()); in do_test() 54 cg_child in do_test() [all...] |
/third_party/ltp/testcases/kernel/controllers/memcg/ |
H A D | memcontrol02.c | 29 static struct tst_cg_group *cg_child; variable 45 SAFE_CG_SCANF(cg_child, "memory.current", "%zd", ¤t); in alloc_anon_50M_check() 49 SAFE_CG_LINES_SCANF(cg_child, "memory.stat", anon_key_fmt, &anon); in alloc_anon_50M_check() 68 SAFE_CG_SCANF(cg_child, "memory.current", "%zu", ¤t); in alloc_pagecache_50M_check() 73 SAFE_CG_SCANF(cg_child, "memory.current", "%zu", ¤t); in alloc_pagecache_50M_check() 77 SAFE_CG_LINES_SCANF(cg_child, "memory.stat", file_key_fmt, &file); in alloc_pagecache_50M_check() 91 cg_child = tst_cg_group_mk(tst_cg, "child"); in test_memcg_current() 92 SAFE_CG_SCANF(cg_child, "memory.current", "%zu", ¤t); in test_memcg_current() 96 SAFE_CG_PRINTF(cg_child, "cgroup.procs", "%d", getpid()); in test_memcg_current() 98 SAFE_CG_SCANF(cg_child, "memor in test_memcg_current() [all...] |
Completed in 1 milliseconds