[LTP] [PATCH 0/4] Begin converting kselftest memcg tests

Richard Palethorpe rpalethorpe@suse.com
Tue Dec 14 10:06:44 CET 2021


Hello,

This is the begining of a piecmeal conversion of the memcg
kselftests. The first test is fairly redundant. However it allows for
some organizational discussion.

The motivation for converting these tests is as follows:

1. It's easier to run these tests across our full product range
   as part of the LTP.
2. The LTP CGroup library allows testing on V1 and V2.
   The kselftest's only support V2.
3. The kselftests appear to cover some things which
   existing LTP tests do not.

Richard Palethorpe (4):
  API: cgroup: Add safe_cgroup_occursin
  API: cgroup: Add cgroup.controllers
  memcontrol01: Import first memcg kselftest
  scripts/coccinelle: Helper for converting CGroup selftests

 include/tst_cgroup.h                          |  8 ++
 lib/tst_cgroup.c                              | 13 ++++
 runtest/controllers                           |  3 +
 .../coccinelle/kselftest-cgroup-to-ltp.cocci  | 40 ++++++++++
 testcases/kernel/controllers/memcg/.gitignore |  1 +
 .../kernel/controllers/memcg/memcontrol01.c   | 77 +++++++++++++++++++
 6 files changed, 142 insertions(+)
 create mode 100644 scripts/coccinelle/kselftest-cgroup-to-ltp.cocci
 create mode 100644 testcases/kernel/controllers/memcg/memcontrol01.c

-- 
2.34.0



More information about the ltp mailing list