/third_party/ltp/testcases/kernel/mem/oom/ |
D | oom05.c | 54 SAFE_CG_HAS(tst_cg, "cpuset.memory_migrate")) { in verify_oom() 55 SAFE_CG_PRINT(tst_cg, "cpuset.memory_migrate", "1"); in verify_oom() 61 if (SAFE_CG_HAS(tst_cg, "memory.swap.max")) { in verify_oom() 64 if (!TST_CG_VER_IS_V1(tst_cg, "memory")) in verify_oom() 65 SAFE_CG_PRINTF(tst_cg, "memory.swap.max", "%lu", MB); in verify_oom() 67 SAFE_CG_PRINTF(tst_cg, "memory.swap.max", "%lu", TESTMEM + MB); in verify_oom() 73 if (TST_CG_VER_IS_V1(tst_cg, "memory")) in verify_oom() 74 SAFE_CG_PRINTF(tst_cg, "memory.swap.max", "%lu", ~0UL); in verify_oom() 76 SAFE_CG_PRINT(tst_cg, "memory.swap.max", "max"); in verify_oom() 99 write_cpusets(tst_cg, memnode); in setup() [all …]
|
D | oom03.c | 46 if (SAFE_CG_HAS(tst_cg, "memory.swap.max")) { in verify_oom() 58 if (!TST_CG_VER_IS_V1(tst_cg, "memory")) in verify_oom() 59 SAFE_CG_PRINTF(tst_cg, "memory.swap.max", "%lu", MB); in verify_oom() 61 SAFE_CG_PRINTF(tst_cg, "memory.swap.max", "%lu", TESTMEM + MB); in verify_oom() 65 if (TST_CG_VER_IS_V1(tst_cg, "memory")) in verify_oom() 66 SAFE_CG_PRINTF(tst_cg, "memory.swap.max", "%lu", ~0UL); in verify_oom() 68 SAFE_CG_PRINT(tst_cg, "memory.swap.max", "max"); in verify_oom() 82 SAFE_CG_PRINTF(tst_cg, "cgroup.procs", "%d", getpid()); in setup() 83 SAFE_CG_PRINTF(tst_cg, "memory.max", "%lu", TESTMEM); in setup()
|
D | oom04.c | 48 SAFE_CG_HAS(tst_cg, "cpuset.memory_migrate")) { in verify_oom() 54 SAFE_CG_PRINT(tst_cg, "cpuset.memory_migrate", "1"); in verify_oom() 78 write_cpusets(tst_cg, memnode); in setup() 79 SAFE_CG_PRINTF(tst_cg, "cgroup.procs", "%d", getpid()); in setup()
|
/third_party/ltp/lib/newlib_tests/ |
D | tst_cgroup02.c | 24 if (!TST_CG_VER_IS_V1(tst_cg, "memory")) in do_test() 25 SAFE_CG_PRINT(tst_cg, "cgroup.subtree_control", "+memory"); in do_test() 26 if (!TST_CG_VER_IS_V1(tst_cg, "cpuset")) in do_test() 27 SAFE_CG_PRINT(tst_cg, "cgroup.subtree_control", "+cpuset"); in do_test() 29 cg_child = tst_cg_group_mk(tst_cg, "child"); in do_test() 47 SAFE_CG_PRINTF(tst_cg, "memory.max", "%zu", (1UL << 24) - 1); in do_test() 49 SAFE_CG_SCANF(tst_cg, "memory.current", "%zu", &mem); in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/madvise/ |
D | madvise06.c | 73 if (!SAFE_CG_HAS(tst_cg, name)) in print_cgmem() 76 SAFE_CG_SCANF(tst_cg, name, "%ld", &ret); in print_cgmem() 121 SAFE_CG_PRINTF(tst_cg, "memory.max", "%ld", MEM_LIMIT); in setup() 122 if (SAFE_CG_HAS(tst_cg, "memory.swap.max")) in setup() 123 SAFE_CG_PRINTF(tst_cg, "memory.swap.max", "%ld", MEMSW_LIMIT); in setup() 125 if (SAFE_CG_HAS(tst_cg, "memory.swappiness")) { in setup() 126 SAFE_CG_PRINT(tst_cg, "memory.swappiness", "60"); in setup() 132 SAFE_CG_PRINTF(tst_cg, "cgroup.procs", "%d", getpid()); in setup()
|
/third_party/ltp/testcases/kernel/mem/cpuset/ |
D | cpuset01.c | 54 SAFE_CG_READ(tst_cg, "cpuset.cpus", buf, sizeof(buf)); in test_cpuset() 55 SAFE_CG_PRINT(tst_cg, "cpuset.cpus", buf); in test_cpuset() 56 SAFE_CG_READ(tst_cg, "cpuset.mems", buf, sizeof(buf)); in test_cpuset() 57 SAFE_CG_PRINT(tst_cg, "cpuset.mems", buf); in test_cpuset() 71 SAFE_CG_PRINTF(tst_cg, "cpuset.mems", "%d", nodes[0]); in test_cpuset() 72 SAFE_CG_PRINTF(tst_cg, "cpuset.mems", "%d", nodes[1]); in test_cpuset() 87 SAFE_CG_PRINTF(tst_cg, "cgroup.procs", "%d", getpid()); in setup()
|
/third_party/ltp/testcases/kernel/controllers/memcg/regression/ |
D | memcg_test_3.c | 49 test_cg = tst_cg_group_mk(tst_cg, "test"); in do_test() 69 if (TST_CG_VER(tst_cg, "memory") != TST_CG_V1) in setup() 70 SAFE_CG_PRINT(tst_cg, "cgroup.subtree_control", "+memory"); in setup()
|
/third_party/ltp/testcases/kernel/mem/ksm/ |
D | ksm04.c | 70 SAFE_CG_PRINTF(tst_cg, "memory.max", "%lu", TESTMEM); in verify_ksm() 81 write_cpusets(tst_cg, node); in verify_ksm() 89 SAFE_CG_PRINTF(tst_cg, "cgroup.procs", "%d", getpid()); in setup()
|
D | ksm03.c | 71 SAFE_CG_PRINTF(tst_cg, "cgroup.procs", "%d", getpid()); in setup() 72 SAFE_CG_PRINTF(tst_cg, "memory.max", "%lu", TESTMEM); in setup()
|
D | ksm02.c | 79 write_cpusets(tst_cg, node); in verify_ksm() 80 SAFE_CG_PRINTF(tst_cg, "cgroup.procs", "%d", getpid()); in verify_ksm()
|
/third_party/ltp/testcases/kernel/controllers/memcg/ |
D | memcontrol02.c | 39 TST_CG_VER_IS_V1(tst_cg, "memory") ? "rss %zd" : "anon %zd"; in alloc_anon_50M_check() 64 TST_CG_VER_IS_V1(tst_cg, "memory") ? "cache %zd" : "file %zd"; in alloc_pagecache_50M_check() 91 cg_child = tst_cg_group_mk(tst_cg, "child"); in test_memcg_current()
|
D | memcontrol01.c | 25 parent = tst_cg_group_mk(tst_cg, "memcg_test_0"); in test_memcg_subtree_control() 27 parent2 = tst_cg_group_mk(tst_cg, "memcg_test_2"); in test_memcg_subtree_control()
|
D | memcontrol04.c | 131 trunk_cg[A] = tst_cg_group_mk(tst_cg, "trunk_A"); in test_memcg_low()
|
D | memcontrol03.c | 160 trunk_cg[A] = tst_cg_group_mk(tst_cg, "trunk_A"); in test_memcg_min()
|
/third_party/ltp/testcases/kernel/controllers/io/ |
D | io_control01.c | 59 SAFE_CG_READ(tst_cg, "io.stat", buf, BUFSIZ - 1); in run() 75 SAFE_CG_PRINTF(tst_cg, "cgroup.procs", "%d", getpid()); in run() 97 SAFE_CG_READ(tst_cg, "io.stat", buf, BUFSIZ - 1); in run()
|
/third_party/ltp/testcases/kernel/controllers/cgroup/ |
D | cgroup_core01.c | 41 cg_child_a = tst_cg_group_mk(tst_cg, "child_a"); in test_lesser_euid_open() 42 cg_child_b = tst_cg_group_mk(tst_cg, "child_b"); in test_lesser_euid_open()
|
D | cgroup_core02.c | 59 cg_child_a = tst_cg_group_mk(tst_cg, "child_a"); in test_lesser_ns_open() 60 cg_child_b = tst_cg_group_mk(tst_cg, "child_b"); in test_lesser_ns_open()
|
D | cgroup_core03.c | 86 cg_child_test_simple = tst_cg_group_mk(tst_cg, "cg_test_simple"); in run()
|
/third_party/ltp/testcases/kernel/syscalls/clone3/ |
D | clone303.c | 68 cg_child_test_simple = tst_cg_group_mk(tst_cg, "cg_test_simple"); in setup()
|
/third_party/ltp/testcases/kernel/sched/cfs-scheduler/ |
D | cfs_bandwidth01.c | 138 cg_level2 = tst_cg_group_mk(tst_cg, "level2"); in setup()
|
/third_party/ltp/include/ |
D | tst_cgroup.h | 113 extern const struct tst_cg_group *const tst_cg;
|
/third_party/ltp/doc/ |
D | C-Test-API.asciidoc | 2172 SAFE_CG_PRINTF(tst_cg, "cgroup.procs", "%d", getpid()); 2173 SAFE_CG_PRINTF(tst_cg, "memory.max", "%lu", MEMSIZE); 2174 if (SAFE_CG_HAS(tst_cg, "memory.swap.max")) 2175 SAFE_CG_PRINTF(tst_cg, "memory.swap.max", "%zu", memsw); 2189 'tst_cg', which represents the test's CGroup. 2216 cg_child = tst_cg_group_mk(tst_cg, "child"); 2219 if (!TST_CG_VER_IS_V1(tst_cg, "memory")) 2220 SAFE_CG_PRINT(tst_cg, "cgroup.subtree_control", "+memory"); 2221 if (!TST_CG_VER_IS_V1(tst_cg, "cpuset")) 2222 SAFE_CG_PRINT(tst_cg, "cgroup.subtree_control", "+cpuset"); [all …]
|
/third_party/ltp/lib/ |
D | tst_cgroup.c | 158 const struct tst_cg_group *const tst_cg = &test_group; variable
|