Home
last modified time | relevance | path

Searched refs:tst_cg (Results 1 – 23 of 23) sorted by relevance

/third_party/ltp/testcases/kernel/mem/oom/
Doom05.c54 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 …]
Doom03.c46 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()
Doom04.c48 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/
Dtst_cgroup02.c24 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/
Dmadvise06.c73 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/
Dcpuset01.c54 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/
Dmemcg_test_3.c49 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/
Dksm04.c70 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()
Dksm03.c71 SAFE_CG_PRINTF(tst_cg, "cgroup.procs", "%d", getpid()); in setup()
72 SAFE_CG_PRINTF(tst_cg, "memory.max", "%lu", TESTMEM); in setup()
Dksm02.c79 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/
Dmemcontrol02.c39 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()
Dmemcontrol01.c25 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()
Dmemcontrol04.c131 trunk_cg[A] = tst_cg_group_mk(tst_cg, "trunk_A"); in test_memcg_low()
Dmemcontrol03.c160 trunk_cg[A] = tst_cg_group_mk(tst_cg, "trunk_A"); in test_memcg_min()
/third_party/ltp/testcases/kernel/controllers/io/
Dio_control01.c59 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/
Dcgroup_core01.c41 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()
Dcgroup_core02.c59 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()
Dcgroup_core03.c86 cg_child_test_simple = tst_cg_group_mk(tst_cg, "cg_test_simple"); in run()
/third_party/ltp/testcases/kernel/syscalls/clone3/
Dclone303.c68 cg_child_test_simple = tst_cg_group_mk(tst_cg, "cg_test_simple"); in setup()
/third_party/ltp/testcases/kernel/sched/cfs-scheduler/
Dcfs_bandwidth01.c138 cg_level2 = tst_cg_group_mk(tst_cg, "level2"); in setup()
/third_party/ltp/include/
Dtst_cgroup.h113 extern const struct tst_cg_group *const tst_cg;
/third_party/ltp/doc/
DC-Test-API.asciidoc2172 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/
Dtst_cgroup.c158 const struct tst_cg_group *const tst_cg = &test_group; variable