[LTP] [PATCH 0/3] memcontrol04 and s/cgroup/cg/
Richard Palethorpe
rpalethorpe@suse.com
Tue Feb 8 15:03:19 CET 2022
Hello,
This adds another test from kselftest and tries to improve the
readability of the cgroup API.
This is probably the last test I will copy for now. However I may
rewrite the tests to clone child processes into a CGroup when the
feature is available.
Richard Palethorpe (3):
API/cgroup: Add memory.{events, low}
API/cgroup: Shorten cgroup to cg in most symbols
memcontrol04: Copy from kselftest
doc/c-test-api.txt | 52 ++--
include/tst_cgroup.h | 112 ++++-----
include/tst_test.h | 2 +-
lib/newlib_tests/tst_cgroup01.c | 18 +-
lib/newlib_tests/tst_cgroup02.c | 54 ++---
lib/tst_cgroup.c | 112 ++++-----
lib/tst_test.c | 8 +-
runtest/controllers | 1 +
scripts/coccinelle/cgroup-ver.cocci | 16 +-
.../coccinelle/kselftest-cgroup-to-ltp.cocci | 16 +-
testcases/kernel/controllers/memcg/.gitignore | 1 +
.../kernel/controllers/memcg/memcontrol01.c | 36 +--
.../kernel/controllers/memcg/memcontrol02.c | 28 +--
.../kernel/controllers/memcg/memcontrol03.c | 60 ++---
.../kernel/controllers/memcg/memcontrol04.c | 228 ++++++++++++++++++
testcases/kernel/mem/cpuset/cpuset01.c | 14 +-
testcases/kernel/mem/include/mem.h | 2 +-
testcases/kernel/mem/ksm/ksm02.c | 6 +-
testcases/kernel/mem/ksm/ksm03.c | 4 +-
testcases/kernel/mem/ksm/ksm04.c | 6 +-
testcases/kernel/mem/lib/mem.c | 8 +-
testcases/kernel/mem/oom/oom03.c | 18 +-
testcases/kernel/mem/oom/oom04.c | 8 +-
testcases/kernel/mem/oom/oom05.c | 24 +-
.../sched/cfs-scheduler/cfs_bandwidth01.c | 40 +--
testcases/kernel/syscalls/madvise/madvise06.c | 16 +-
26 files changed, 561 insertions(+), 329 deletions(-)
create mode 100644 testcases/kernel/controllers/memcg/memcontrol04.c
--
2.34.1
More information about the ltp
mailing list