Skip to content

Begin converting kselftest memcg tests

Richard Palethorpe via ltp ltp 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4API: cgroup: Add safe_cgroup_occursininclude/tst_cgroup.h lib/tst_cgroup.c+20 -01 reply
2/4API: cgroup: Add cgroup.controllerslib/tst_cgroup.c+1 -01 reply
3/4memcontrol01: Import first memcg kselftestruntest/controllers testcases/kernel/controllers/memcg/.gitignore testcases/kernel/controllers/memcg/memcontrol01.c+81 -01 reply
4/4scripts/coccinelle: Helper for converting CGroup selftestsscripts/coccinelle/kselftest-cgroup-to-ltp.cocci+40 -02 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchCyril Hrubis
1/4R-b
2/4R-b
3/4R-b
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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

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
Signature · 5 lines
2.34.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp