Expand Cgroup lib and modify controller tests
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest4 of 18 patches 8 repliesIn review
- v47 of 19 patches 14 repliesSuperseded
- v213 of 16 patches 4 repliesSuperseded
Earlier versions · 1
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v1 | 12 of 16 patches | 13 replies | Superseded |
4 of 18 patches are in this archive. The cover letter announces 18.
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 2/18 | API/cgroup: Add option for specific pid to tst_cg_optsinclude/ lib/ | +9 | 0 replies | |
| 4/18 | API/cgroup: Add CTRL_NAME_MAX definelib/ | +2 | 0 replies | |
| 6/18 | API/cgroup: Implement tst_cg_load_configinclude/ lib/ | +81 | 0 replies | |
| 10/18 | controllers: Expand cgroup_lib shell librarytestcases/ | +113 | 2 replies |
Reviews trailers per patch
None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Li Wang | Richard Palethorpe | Petr Vorel |
|---|---|---|---|
| Series | R-b | R-b | R-b |
| 2/18 | |||
| 4/18 | |||
| 6/18 | |||
| 10/18 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [LTP] [PATCH v5 00/18] Expand Cgroup lib and modify controller tests
This patchset aims to expand the cgroup_lib shell library to simplify and centralize the whole mounting and cleanup process that can get rather confusing and redundant when writing cgroup controller tests from a shell environment. This is done by having the shell library make calls to the C cgroup API from a binary utility.
In this patch set there are a few tests that have been extensively rewritten to work with the new test API and to use the new functionality from the cgroup lib. Because the test Cgroup lib handles mounting for v1 and v2 controllers, some tests were modified to also work under cgroup v2. Some tests that were written for v1 controller also effictively test v2 controllers, while others were written to test v2 controllers in the spirit of the test or skipped outright.
Luke Nowakowski-Krijger (18):
API/cgroup: Modify tst_cg_print_config for parsing and consumption API/cgroup: Add option for specific pid to tst_cg_opts API/cgroup: Add cgroup_find_root helper function API/cgroup: Add CTRL_NAME_MAX define
tst_test_macros: Add TST_TO_STR and TST_STR macro API/cgroup: Implement tst_cg_load_config
API/cgroup: Add more controllers to tst_cgroup
API/cgroup: refuse to mount blkio when io controller is mounted testcases/lib: Implement tst_cgctl binary
controllers: Expand cgroup_lib shell library
controllers: Update cgroup_fj_* to use newer cgroup lib and test lib
controllers: Update memcg_control_test to newer test lib and cgroup
lib
controllers: Update memcg/regression/* to new test and cgroup lib
controllers: Update memcg_stress_test to use newer cgroup lib
controllers: update memcg/functional to use newer cgroup lib
controllers: Update pids.sh to use newer cgroup lib
controllers: update cpuset_regression_test.sh to use newer cgroup lib
controllers: update cgroup_regression_test to use newer cgroup lib
include/tst_cgroup.h | 17 +- include/tst_test_macros.h | 3 + lib/tst_cgroup.c | 216 +++++++++++++++++- .../cgroup/cgroup_regression_test.sh | 31 +-- .../controllers/cgroup_fj/cgroup_fj_common.sh | 115 +++------- .../cgroup_fj/cgroup_fj_function.sh | 172 ++++++++------ .../controllers/cgroup_fj/cgroup_fj_proc.c | 24 +- .../controllers/cgroup_fj/cgroup_fj_stress.sh | 171 +++++++------- testcases/kernel/controllers/cgroup_lib.sh | 133 +++++++++-- .../cpuset/cpuset_regression_test.sh | 26 +-- .../controllers/memcg/control/mem_process.c | 28 +-- .../memcg/control/memcg_control_test.sh | 149 +++--------- .../memcg/functional/memcg_force_empty.sh | 2 +- .../controllers/memcg/functional/memcg_lib.sh | 54 +++-- .../memcg/regression/memcg_regression_test.sh | 203 ++++++++-------- .../memcg/regression/memcg_test_1.c | 40 ++-- .../memcg/regression/memcg_test_2.c | 24 +- .../memcg/regression/memcg_test_3.c | 38 ++- .../memcg/regression/memcg_test_4.c | 24 +- .../memcg/regression/memcg_test_4.sh | 50 ++-- .../memcg/stress/memcg_stress_test.sh | 32 +-- testcases/kernel/controllers/pids/pids.sh | 67 +----- testcases/lib/Makefile | 2 +- testcases/lib/tst_cgctl.c | 87 +++++++ 24 files changed, 909 insertions(+), 799 deletions(-) create mode 100644 testcases/lib/tst_cgctl.c
Signature · 5 lines
2.34.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp