Home
last modified time | relevance | path

Searched refs:cg_child (Results 1 – 3 of 3) sorted by relevance

/third_party/ltp/lib/newlib_tests/
Dtst_cgroup02.c20 static struct tst_cgroup_group *cg_child; variable
32 cg_child = tst_cgroup_group_mk(cg, "child"); in do_test()
34 SAFE_CGROUP_PRINTF(cg_child, "cgroup.procs", "%d", getpid()); in do_test()
36 SAFE_CGROUP_SCANF(cg_child, "memory.current", "%zu", &mem); in do_test()
38 SAFE_CGROUP_PRINTF(cg_child, "memory.max", in do_test()
40 SAFE_CGROUP_PRINTF(cg_child, "memory.swap.max", in do_test()
43 SAFE_CGROUP_READ(cg_child, "cpuset.mems", buf, sizeof(buf)); in do_test()
45 SAFE_CGROUP_PRINT(cg_child, "cpuset.mems", buf); in do_test()
51 SAFE_CGROUP_PRINTF(cg_child, "cgroup.procs", "%d", getpid()); in do_test()
57 cg_child = tst_cgroup_group_rm(cg_child); in do_test()
[all …]
/third_party/ltp/testcases/kernel/controllers/memcg/
Dmemcontrol02.c37 static struct tst_cgroup_group *cg_child; variable
63 SAFE_CGROUP_SCANF(cg_child, "memory.current", "%zd", &current); in alloc_anon_50M_check()
67 SAFE_CGROUP_LINES_SCANF(cg_child, "memory.stat", anon_key_fmt, &anon); in alloc_anon_50M_check()
104 SAFE_CGROUP_SCANF(cg_child, "memory.current", "%zu", &current); in alloc_pagecache_50M_check()
109 SAFE_CGROUP_SCANF(cg_child, "memory.current", "%zu", &current); in alloc_pagecache_50M_check()
113 SAFE_CGROUP_LINES_SCANF(cg_child, "memory.stat", file_key_fmt, &file); in alloc_pagecache_50M_check()
127 cg_child = tst_cgroup_group_mk(cg_test, "child"); in test_memcg_current()
128 SAFE_CGROUP_SCANF(cg_child, "memory.current", "%zu", &current); in test_memcg_current()
132 SAFE_CGROUP_PRINTF(cg_child, "cgroup.procs", "%d", getpid()); in test_memcg_current()
134 SAFE_CGROUP_SCANF(cg_child, "memory.current", "%zu", &current); in test_memcg_current()
[all …]
/third_party/ltp/doc/
Dc-test-api.txt2123 static struct tst_cgroup_group *cg_child;
2130 cg_child = tst_cgroup_group_mk(cg, "child");
2131 SAFE_CGROUP_PRINTF(cg_child, "cgroup.procs", "%d", getpid());
2139 SAFE_CGROUP_PRINTF(cg_child, "cgroup.procs", "%d", getpid());
2141 if (SAFE_CGROUP_HAS(cg_child, "memory.swap"))
2142 SAFE_CGROUP_SCANF(cg_child, "memory.swap.current", "%zu", &mem);
2143 SAFE_CGROUP_READ(cg_child, "cpuset.mems", buf, sizeof(buf));
2153 cg_child = tst_cgroup_group_rm(cg_child);
2167 if (cg_child) {
2169 cg_child = tst_cgroup_group_rm(cg_child);
[all …]