Home
last modified time | relevance | path

Searched refs:SAFE_CGROUP_PRINTF (Results 1 – 15 of 15) sorted by relevance

/third_party/ltp/lib/newlib_tests/
Dtst_cgroup02.c34 SAFE_CGROUP_PRINTF(cg_child, "cgroup.procs", "%d", getpid()); 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()
50 SAFE_CGROUP_PRINTF(cg, "memory.max", "%zu", (1UL << 24) - 1); in do_test()
51 SAFE_CGROUP_PRINTF(cg_child, "cgroup.procs", "%d", getpid()); in do_test()
56 SAFE_CGROUP_PRINTF(cg_drain, "cgroup.procs", "%d", getpid()); in do_test()
77 SAFE_CGROUP_PRINTF(cg_drain, "cgroup.procs", "%d", getpid()); in cleanup()
/third_party/ltp/testcases/kernel/mem/oom/
Doom03.c61 SAFE_CGROUP_PRINTF(cg, "memory.swap.max", "%lu", MB); in verify_oom()
63 SAFE_CGROUP_PRINTF(cg, "memory.swap.max", "%lu", TESTMEM + MB); in verify_oom()
68 SAFE_CGROUP_PRINTF(cg, "memory.swap.max", "%lu", ~0UL); in verify_oom()
89 SAFE_CGROUP_PRINTF(cg, "cgroup.procs", "%d", getpid()); in setup()
90 SAFE_CGROUP_PRINTF(cg, "memory.max", "%lu", TESTMEM); in setup()
Doom05.c67 SAFE_CGROUP_PRINTF(cg, "memory.swap.max", "%lu", MB); in verify_oom()
69 SAFE_CGROUP_PRINTF(cg, "memory.swap.max", "%lu", TESTMEM + MB); in verify_oom()
76 SAFE_CGROUP_PRINTF(cg, "memory.swap.max", "%lu", ~0UL); in verify_oom()
109 SAFE_CGROUP_PRINTF(cg, "cgroup.procs", "%d", getpid()); in setup()
110 SAFE_CGROUP_PRINTF(cg, "memory.max", "%lu", TESTMEM); in setup()
Doom04.c87 SAFE_CGROUP_PRINTF(cg, "cgroup.procs", "%d", getpid()); in setup()
/third_party/ltp/testcases/kernel/sched/cfs-scheduler/
Dcfs_bandwidth01.c47 SAFE_CGROUP_PRINTF(cg, "cpu.max", in set_cpu_quota()
50 SAFE_CGROUP_PRINTF(cg, "cpu.cfs_period_us", in set_cpu_quota()
52 SAFE_CGROUP_PRINTF(cg, "cpu.max", in set_cpu_quota()
102 SAFE_CGROUP_PRINTF(cg, "cgroup.procs", "%d", busy_pid); in fork_busy_procs_in_cgroup()
/third_party/ltp/testcases/kernel/mem/cpuset/
Dcpuset01.c73 SAFE_CGROUP_PRINTF(cg, "cpuset.mems", "%d", nodes[0]); in test_cpuset()
74 SAFE_CGROUP_PRINTF(cg, "cpuset.mems", "%d", nodes[1]); in test_cpuset()
91 SAFE_CGROUP_PRINTF(cg, "cgroup.procs", "%d", getpid()); in setup()
/third_party/ltp/testcases/kernel/mem/ksm/
Dksm03.c84 SAFE_CGROUP_PRINTF(cg, "cgroup.procs", "%d", getpid()); in setup()
85 SAFE_CGROUP_PRINTF(cg, "memory.max", "%lu", TESTMEM); in setup()
Dksm04.c72 SAFE_CGROUP_PRINTF(cg, "memory.max", "%lu", TESTMEM); in verify_ksm()
112 SAFE_CGROUP_PRINTF(cg, "cgroup.procs", "%d", getpid()); in setup()
Dksm02.c83 SAFE_CGROUP_PRINTF(cg, "cgroup.procs", "%d", getpid()); in verify_ksm()
85 SAFE_CGROUP_PRINTF(cg_drain, "cgroup.procs", "%d", getpid()); in verify_ksm()
/third_party/ltp/testcases/kernel/syscalls/madvise/
Dmadvise06.c127 SAFE_CGROUP_PRINTF(cg, "memory.max", "%ld", MEM_LIMIT); in setup()
129 SAFE_CGROUP_PRINTF(cg, "memory.swap.max", "%ld", MEMSW_LIMIT); in setup()
138 SAFE_CGROUP_PRINTF(cg, "cgroup.procs", "%d", getpid()); in setup()
/third_party/ltp/include/
Dtst_cgroup.h174 #define SAFE_CGROUP_PRINTF(cg, file_name, fmt, ...) \ macro
/third_party/ltp/testcases/kernel/controllers/memcg/
Dmemcontrol02.c132 SAFE_CGROUP_PRINTF(cg_child, "cgroup.procs", "%d", getpid()); in test_memcg_current()
/third_party/ltp/testcases/kernel/mem/lib/
Dmem.c639 SAFE_CGROUP_PRINTF(cg, "cpuset.mems", "%ld", nd); in write_cpusets()
/third_party/ltp/doc/
Dc-test-api.txt2076 SAFE_CGROUP_PRINTF(cg, "cgroup.procs", "%d", getpid());
2077 SAFE_CGROUP_PRINTF(cg, "memory.max", "%lu", MEMSIZE);
2079 SAFE_CGROUP_PRINTF(cg, "memory.swap.max", "%zu", memsw);
2131 SAFE_CGROUP_PRINTF(cg_child, "cgroup.procs", "%d", getpid());
2139 SAFE_CGROUP_PRINTF(cg_child, "cgroup.procs", "%d", getpid());
2152 SAFE_CGROUP_PRINTF(cg_drain, "cgroup.procs", "%d", getpid());
2168 SAFE_CGROUP_PRINTF(cg_drain, "cgroup.procs", "%d", getpid());
2226 SAFE_CGROUP_PRINTF(cg, "memory.swap.max", "%lu", ~0UL);
/third_party/ltp/lib/
Dtst_cgroup.c858 SAFE_CGROUP_PRINTF(parent, "cgroup.subtree_control", in cgroup_group_add_dir()