Skip to content

selftests/resctrl: Fixes to error handling logic and cleanups

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest9 patches 11 repliesIn review
  2. v14 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- Improved changelogs
- Return NULL directly from malloc_and_init_memory()
- Added patch to convert memalign() to posix_memalign()
- Added patch to correct function comment parameter
- Dropped literal -> define patch for now (likely superceded soon)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9selftests/resctrl: Return NULL if malloc_and_init_memory() did not alloc memtools/testing/selftests/resctrl/fill_buf.c+2 -01 reply
2/9selftests/resctrl: Move ->setup() call outside of test specific branchestools/testing/selftests/resctrl/resctrl_val.c+6 -131 reply
3/9selftests/resctrl: Allow ->setup() to return errorstools/testing/selftests/resctrl/cache.c tools/testing/selftests/resctrl/cat_test.c tools/testing/selftests/resctrl/cmt_test.c +4 more+12 -61 reply
4/9selftests/resctrl: Check for return value after write_schemata()tools/testing/selftests/resctrl/mba_test.c+6 -11 reply
5/9selftests/resctrl: Replace obsolete memalign() with posix_memalign()tools/testing/selftests/resctrl/fill_buf.c+4 -31 reply
6/9selftests/resctrl: Change initialize_llc_perf() return type to voidtools/testing/selftests/resctrl/cache.c+3 -81 reply
7/9selftests/resctrl: Change name from CBM_MASK_PATH to INFO_PATHtools/testing/selftests/resctrl/resctrl.h tools/testing/selftests/resctrl/resctrlfs.c+2 -21 reply
8/9selftests/resctrl: Use remount_resctrlfs() consistently with booleantools/testing/selftests/resctrl/cat_test.c tools/testing/selftests/resctrl/cmt_test.c tools/testing/selftests/resctrl/mba_test.c +2 more+7 -81 reply
9/9selftests/resctrl: Correct get_llc_perf() param in function commenttools/testing/selftests/resctrl/cache.c+1 -12 replies

Reviews trailers per patch

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

PatchReinette Chatre
1/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9R-b
7/9R-b
8/9R-b
9/9R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/9] selftests/resctrl: Fixes to error handling logic and cleanups

This series fixes a few cleanup/error handling problems and cleans up code.

v2:
- Improved changelogs
- Return NULL directly from malloc_and_init_memory()
- Added patch to convert memalign() to posix_memalign()
- Added patch to correct function comment parameter
- Dropped literal -> define patch for now (likely superceded soon)

Fenghua Yu (1):
selftests/resctrl: Change name from CBM_MASK_PATH to INFO_PATH

Ilpo Järvinen (8):
selftests/resctrl: Return NULL if malloc_and_init_memory() did not
alloc mem
selftests/resctrl: Move ->setup() call outside of test specific
branches
selftests/resctrl: Allow ->setup() to return errors selftests/resctrl: Check for return value after write_schemata() selftests/resctrl: Replace obsolete memalign() with posix_memalign() selftests/resctrl: Change initialize_llc_perf() return type to void selftests/resctrl: Use remount_resctrlfs() consistently with boolean selftests/resctrl: Correct get_llc_perf() param in function comment

 tools/testing/selftests/resctrl/cache.c       | 17 +++++++--------
 tools/testing/selftests/resctrl/cat_test.c    |  4 ++--
 tools/testing/selftests/resctrl/cmt_test.c    |  9 ++++----
 tools/testing/selftests/resctrl/fill_buf.c    |  7 +++++--
 tools/testing/selftests/resctrl/mba_test.c    | 11 +++++++---
 tools/testing/selftests/resctrl/mbm_test.c    |  4 ++--
 tools/testing/selftests/resctrl/resctrl.h     |  6 ++++--
 tools/testing/selftests/resctrl/resctrl_val.c | 21 +++++++------------
 tools/testing/selftests/resctrl/resctrlfs.c   |  2 +-
 9 files changed, 41 insertions(+), 40 deletions(-)
Signature · 1 line
2.30.2