Skip to content

selftests/resctrl: Fixes to failing tests

Ilpo Järvinen linux-kselftest lkml stable 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest7 patches 4 repliesIn review
  2. v37 patches 3 repliesSuperseded
  3. v26 patches 13 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v15 patches19 repliesSuperseded

Changes in v4 from the cover letter

- Use func(void) for functions taking no arguments
- Correct Fixes tag formatting

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7selftests/resctrl: Fix uninitialized .sa_flagstools/testing/selftests/resctrl/resctrl_val.c+2 -21 reply
2/7selftests/resctrl: Extend signal handler coverage to unmount on receiving signaltools/testing/selftests/resctrl/cat_test.c tools/testing/selftests/resctrl/resctrl_tests.c tools/testing/selftests/resctrl/resctrl_val.c+55 -440 replies
3/7selftests/resctrl: Remove duplicate feature check from CMT testtools/testing/selftests/resctrl/cmt_test.c+0 -30 replies
4/7selftests/resctrl: Move _GNU_SOURCE define into Makefiletools/testing/selftests/resctrl/Makefile tools/testing/selftests/resctrl/resctrl.h+1 -20 replies
5/7selftests/resctrl: Refactor feature check to use resource and feature nametools/testing/selftests/resctrl/resctrl.h tools/testing/selftests/resctrl/resctrl_tests.c tools/testing/selftests/resctrl/resctrlfs.c+34 -510 replies
6/7selftests/resctrl: Fix feature checkstools/testing/selftests/resctrl/resctrl_tests.c+5 -20 replies
7/7selftests/resctrl: Reduce failures due to outliers in MBA/MBM teststools/testing/selftests/resctrl/mba_test.c tools/testing/selftests/resctrl/mbm_test.c+2 -20 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchShaopeng TanReinette Chatre
SeriesR-b T-b
1/7R-b
2/7T-b R-b R-b
3/7T-b R-b R-b
4/7T-b R-b R-b
5/7T-b R-b R-b
6/7T-b R-b R-b
7/7T-b R-b R-b

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

Read the v4 thread

Cover letter [PATCH v4 0/7] selftests/resctrl: Fixes to failing tests

Fix four issues with resctrl selftests.

The signal handling fix became necessary after the mount/umount fixes and the uninitialized member bug was discovered during the review.

The other two came up when I ran resctrl selftests across the server fleet in our lab to validate the upcoming CAT test rewrite (the rewrite is not part of this series).

These are developed and should apply cleanly at least on top the benchmark cleanup series (might apply cleanly also w/o the benchmark series, I didn't test).

v4:
- Use func(void) for functions taking no arguments
- Correct Fixes tag formatting

v3:
- Add fix to uninitialized sa_flags
- Handle ksft_exit_fail_msg() in per test functions
- Make signal handler register fails to also exit
- Improve changelogs

v2:
- Include patch to move _GNU_SOURCE to Makefile to allow normal #include placement
- Rework the signal register/unregister into patch to use helpers
- Fixed incorrect function parameter description
- Use return !!res to avoid confusing implicit boolean conversion
- Improve MBA/MBM success bound patch's changelog
- Tweak Cc: stable dependencies (make it a chain).

Ilpo Järvinen (7):
selftests/resctrl: Fix uninitialized .sa_flags selftests/resctrl: Extend signal handler coverage to unmount on
receiving signal
selftests/resctrl: Remove duplicate feature check from CMT test selftests/resctrl: Move _GNU_SOURCE define into Makefile selftests/resctrl: Refactor feature check to use resource and feature
name
selftests/resctrl: Fix feature checks
selftests/resctrl: Reduce failures due to outliers in MBA/MBM tests

 tools/testing/selftests/resctrl/Makefile      |  2 +-
 tools/testing/selftests/resctrl/cat_test.c    |  8 --
 tools/testing/selftests/resctrl/cmt_test.c    |  3 -
 tools/testing/selftests/resctrl/mba_test.c    |  2 +-
 tools/testing/selftests/resctrl/mbm_test.c    |  2 +-
 tools/testing/selftests/resctrl/resctrl.h     |  7 +-
 .../testing/selftests/resctrl/resctrl_tests.c | 82 ++++++++++++-------
 tools/testing/selftests/resctrl/resctrl_val.c | 26 +++---
 tools/testing/selftests/resctrl/resctrlfs.c   | 69 ++++++----------
 9 files changed, 97 insertions(+), 104 deletions(-)
Signature · 1 line
2.30.2