/third_party/ltp/lib/newlib_tests/ |
D | tst_cgroup02.c | 34 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/ |
D | oom03.c | 61 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()
|
D | oom05.c | 67 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()
|
D | oom04.c | 87 SAFE_CGROUP_PRINTF(cg, "cgroup.procs", "%d", getpid()); in setup()
|
/third_party/ltp/testcases/kernel/sched/cfs-scheduler/ |
D | cfs_bandwidth01.c | 47 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/ |
D | cpuset01.c | 73 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/ |
D | ksm03.c | 84 SAFE_CGROUP_PRINTF(cg, "cgroup.procs", "%d", getpid()); in setup() 85 SAFE_CGROUP_PRINTF(cg, "memory.max", "%lu", TESTMEM); in setup()
|
D | ksm04.c | 72 SAFE_CGROUP_PRINTF(cg, "memory.max", "%lu", TESTMEM); in verify_ksm() 112 SAFE_CGROUP_PRINTF(cg, "cgroup.procs", "%d", getpid()); in setup()
|
D | ksm02.c | 83 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/ |
D | madvise06.c | 127 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/ |
D | tst_cgroup.h | 174 #define SAFE_CGROUP_PRINTF(cg, file_name, fmt, ...) \ macro
|
/third_party/ltp/testcases/kernel/controllers/memcg/ |
D | memcontrol02.c | 132 SAFE_CGROUP_PRINTF(cg_child, "cgroup.procs", "%d", getpid()); in test_memcg_current()
|
/third_party/ltp/testcases/kernel/mem/lib/ |
D | mem.c | 639 SAFE_CGROUP_PRINTF(cg, "cpuset.mems", "%ld", nd); in write_cpusets()
|
/third_party/ltp/doc/ |
D | c-test-api.txt | 2076 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/ |
D | tst_cgroup.c | 858 SAFE_CGROUP_PRINTF(parent, "cgroup.subtree_control", in cgroup_group_add_dir()
|