[PATCH 0/5] selftests/resctrl: Some improvements of resctrl selftest

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

The aim of this patch series is to improve the resctrl selftest.
The first three patches clear redundant code. 
The last two patches are bug fixes. Without the two fixes, 
some unnecessary processing will be executed and test results 
will be confusing. There is no behavior change in test themselves.
[patch 1] Because the default schemata is 100% , in MBM test
          it is not necessary to reset schemata by write_schemata().
[patch 2] Delete CMT-related processing in write_schemata() which is 
	  not called by CMT.
[patch 3] Before exiting each test CMT/CAT/MBM/MBA, clear test result 
	  files function cat/cmt/mbm/mba_test_cleanup() are called twice. 
	  Delete once.
[patch 4] If there is an exception occurs after creating a child 
	  process with fork() in the CAT test, kill the child process 
	  before terminating the parent process.
[patch 5] When a child process is created by fork(), the buffer of the 
	  parent process is also copied. Flush the buffer before executing fork().

This patch series is based on Linux v6.0-rc5

Shaopeng Tan (5):
  selftests/resctrl: Clear unused initalization code in MBM tests
  selftests/resctrl: Clear unused common codes called by CAT/MBA tests
  testing/selftests: Remove duplicate codes that clear each test result
    file
  selftests/resctrl: Kill the child process before exiting the parent
    process if an exception occurs
  selftests/resctrl: Flush stdout file buffer before executing fork()

 tools/testing/selftests/resctrl/cat_test.c    | 17 +++++++++--------
 tools/testing/selftests/resctrl/cmt_test.c    |  2 --
 tools/testing/selftests/resctrl/mba_test.c    |  2 --
 tools/testing/selftests/resctrl/mbm_test.c    | 19 ++++++-------------
 tools/testing/selftests/resctrl/resctrl_val.c |  1 +
 tools/testing/selftests/resctrl/resctrlfs.c   |  7 +++----
 6 files changed, 19 insertions(+), 29 deletions(-)

-- 
2.27.0




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux