[LTP] [PATCH 0/6] Add memcontrol03 and declarative CG API
Richard Palethorpe
rpalethorpe@suse.com
Thu Jan 27 07:12:19 CET 2022
Hello,
This adds a third test from the kselftests. Also I have finally taken
the step of moving the CGroup configuration to tst_test. This doesn't
save a huge amount of typing, but is good for the meta-data.
Richard Palethorpe (6):
memcontrol02: Remove O_TMPFILE TCONF check
API: Add tst_reap_child
memcontrol: Lift out some common definitions into a shared header
API/cgroup: Declare required controllers and version in test struct
API/cgroup: Add memory.min
memcontrol03: Copy from kselftest
include/tst_cgroup.h | 15 +-
include/tst_test.h | 23 ++
lib/newlib_tests/tst_cgroup01.c | 2 +-
lib/newlib_tests/tst_cgroup02.c | 2 +-
lib/tst_cgroup.c | 21 +-
lib/tst_test.c | 47 ++++
.../kernel/controllers/memcg/memcontrol01.c | 13 +-
.../kernel/controllers/memcg/memcontrol02.c | 50 +---
.../kernel/controllers/memcg/memcontrol03.c | 231 ++++++++++++++++++
.../controllers/memcg/memcontrol_common.h | 48 ++++
testcases/kernel/mem/cpuset/cpuset01.c | 4 +-
testcases/kernel/mem/ksm/ksm02.c | 4 +-
testcases/kernel/mem/ksm/ksm03.c | 4 +-
testcases/kernel/mem/ksm/ksm04.c | 7 +-
testcases/kernel/mem/oom/oom03.c | 4 +-
testcases/kernel/mem/oom/oom05.c | 8 +-
.../sched/cfs-scheduler/cfs_bandwidth01.c | 6 +-
testcases/kernel/syscalls/madvise/madvise06.c | 5 +-
18 files changed, 399 insertions(+), 95 deletions(-)
create mode 100644 testcases/kernel/controllers/memcg/memcontrol03.c
create mode 100644 testcases/kernel/controllers/memcg/memcontrol_common.h
--
2.34.1
More information about the ltp
mailing list