public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/24] selftests/resctrl: Fixes, cleanups, and rewritten CAT test
@ 2023-04-18 11:44 Ilpo Järvinen
  2023-04-18 11:44 ` [PATCH v2 01/24] selftests/resctrl: Add resctrl.h into build deps Ilpo Järvinen
                   ` (23 more replies)
  0 siblings, 24 replies; 72+ messages in thread
From: Ilpo Järvinen @ 2023-04-18 11:44 UTC (permalink / raw)
  To: linux-kselftest, Reinette Chatre, Fenghua Yu, Shuah Khan
  Cc: linux-kernel, Shaopeng Tan, Ilpo Järvinen

Here is a series with some fixes and cleanups to resctrl selftests and
rewrite of CAT test into something that really tests CAT working or not
condition.

v2:
- Rebased on top of next to solve the conflicts
- Added 2 patches related to resctrl FS mount/umount (fix + cleanup)
- Consistently use "alloc" in cache_alloc_size()
- CAT test error handling tweaked
- Remove a spurious newline change from the CAT patch
- Small improvements to changelogs

Ilpo Järvinen (24):
  selftests/resctrl: Add resctrl.h into build deps
  selftests/resctrl: Check also too low values for CBM bits
  selftests/resctrl: Move resctrl FS mount/umount to higher level
  selftests/resctrl: Remove mum_resctrlfs
  selftests/resctrl: Make span unsigned long everywhere
  selftests/resctrl: Express span in bytes
  selftests/resctrl: Remove duplicated preparation for span arg
  selftests/resctrl: Don't use variable argument list for ->setup()
  selftests/resctrl: Remove "malloc_and_init_memory" param from
    run_fill_buf()
  selftests/resctrl: Split run_fill_buf() to alloc, work, and dealloc
    helpers
  selftests/resctrl: Remove start_buf local variable from buffer alloc
    func
  selftests/resctrl: Don't pass test name to fill_buf
  selftests/resctrl: Add flush_buffer() to fill_buf
  selftests/resctrl: Remove test type checks from cat_val()
  selftests/resctrl: Refactor get_cbm_mask()
  selftests/resctrl: Create cache_alloc_size() helper
  selftests/resctrl: Replace count_bits with count_consecutive_bits()
  selftests/resctrl: Exclude shareable bits from schemata in CAT test
  selftests/resctrl: Pass the real number of tests to show_cache_info()
  selftests/resctrl: Move CAT/CMT test global vars to func they are used
  selftests/resctrl: Read in less obvious order to defeat prefetch
    optimizations
  selftests/resctrl: Split measure_cache_vals() function
  selftests/resctrl: Split show_cache_info() to test specific and
    generic parts
  selftests/resctrl: Rewrite Cache Allocation Technology (CAT) test

 tools/testing/selftests/resctrl/Makefile      |   2 +-
 tools/testing/selftests/resctrl/cache.c       | 154 ++++++------
 tools/testing/selftests/resctrl/cat_test.c    | 235 ++++++++----------
 tools/testing/selftests/resctrl/cmt_test.c    |  65 +++--
 tools/testing/selftests/resctrl/fill_buf.c    | 105 ++++----
 tools/testing/selftests/resctrl/mba_test.c    |   9 +-
 tools/testing/selftests/resctrl/mbm_test.c    |  17 +-
 tools/testing/selftests/resctrl/resctrl.h     |  32 +--
 .../testing/selftests/resctrl/resctrl_tests.c |  82 ++++--
 tools/testing/selftests/resctrl/resctrl_val.c |   9 +-
 tools/testing/selftests/resctrl/resctrlfs.c   | 187 ++++++++++----
 11 files changed, 499 insertions(+), 398 deletions(-)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 72+ messages in thread

end of thread, other threads:[~2023-06-16  6:44 UTC | newest]

Thread overview: 72+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-18 11:44 [PATCH v2 00/24] selftests/resctrl: Fixes, cleanups, and rewritten CAT test Ilpo Järvinen
2023-04-18 11:44 ` [PATCH v2 01/24] selftests/resctrl: Add resctrl.h into build deps Ilpo Järvinen
2023-04-22  0:07   ` Reinette Chatre
2023-04-18 11:44 ` [PATCH v2 02/24] selftests/resctrl: Check also too low values for CBM bits Ilpo Järvinen
2023-04-22  0:08   ` Reinette Chatre
2023-04-24 10:46     ` Ilpo Järvinen
2023-04-18 11:44 ` [PATCH v2 03/24] selftests/resctrl: Move resctrl FS mount/umount to higher level Ilpo Järvinen
2023-04-22  0:09   ` Reinette Chatre
2023-04-24 14:58     ` Ilpo Järvinen
2023-04-18 11:44 ` [PATCH v2 04/24] selftests/resctrl: Remove mum_resctrlfs Ilpo Järvinen
2023-04-22  0:11   ` Reinette Chatre
2023-04-24 14:55     ` Ilpo Järvinen
2023-04-18 11:44 ` [PATCH v2 05/24] selftests/resctrl: Make span unsigned long everywhere Ilpo Järvinen
2023-04-22  0:12   ` Reinette Chatre
2023-04-24 15:05     ` Ilpo Järvinen
2023-04-18 11:44 ` [PATCH v2 06/24] selftests/resctrl: Express span in bytes Ilpo Järvinen
2023-04-22  0:12   ` Reinette Chatre
2023-04-24 15:31     ` Ilpo Järvinen
2023-04-18 11:44 ` [PATCH v2 07/24] selftests/resctrl: Remove duplicated preparation for span arg Ilpo Järvinen
2023-04-22  0:14   ` Reinette Chatre
2023-04-24 15:41     ` Ilpo Järvinen
2023-04-18 11:44 ` [PATCH v2 08/24] selftests/resctrl: Don't use variable argument list for ->setup() Ilpo Järvinen
2023-04-18 11:44 ` [PATCH v2 09/24] selftests/resctrl: Remove "malloc_and_init_memory" param from run_fill_buf() Ilpo Järvinen
2023-04-18 11:44 ` [PATCH v2 10/24] selftests/resctrl: Split run_fill_buf() to alloc, work, and dealloc helpers Ilpo Järvinen
2023-04-22  0:16   ` Reinette Chatre
2023-04-24 16:01     ` Ilpo Järvinen
2023-04-24 16:32       ` Reinette Chatre
2023-04-18 11:44 ` [PATCH v2 11/24] selftests/resctrl: Remove start_buf local variable from buffer alloc func Ilpo Järvinen
2023-04-22  0:16   ` Reinette Chatre
2023-04-18 11:44 ` [PATCH v2 12/24] selftests/resctrl: Don't pass test name to fill_buf Ilpo Järvinen
2023-04-18 11:44 ` [PATCH v2 13/24] selftests/resctrl: Add flush_buffer() " Ilpo Järvinen
2023-04-22  0:16   ` Reinette Chatre
2023-04-18 11:44 ` [PATCH v2 14/24] selftests/resctrl: Remove test type checks from cat_val() Ilpo Järvinen
2023-04-18 11:44 ` [PATCH v2 15/24] selftests/resctrl: Refactor get_cbm_mask() Ilpo Järvinen
2023-04-22  0:17   ` Reinette Chatre
2023-05-31  6:03   ` Shaopeng Tan (Fujitsu)
2023-05-31  9:24     ` Ilpo Järvinen
2023-04-18 11:44 ` [PATCH v2 16/24] selftests/resctrl: Create cache_alloc_size() helper Ilpo Järvinen
2023-04-22  0:19   ` Reinette Chatre
2023-04-24 16:28     ` Ilpo Järvinen
2023-04-24 16:45       ` Reinette Chatre
2023-04-18 11:44 ` [PATCH v2 17/24] selftests/resctrl: Replace count_bits with count_consecutive_bits() Ilpo Järvinen
2023-04-22  0:20   ` Reinette Chatre
2023-04-25 11:41     ` Ilpo Järvinen
2023-04-25 14:28       ` Reinette Chatre
2023-05-31  7:25   ` Shaopeng Tan (Fujitsu)
2023-05-31  9:35     ` Ilpo Järvinen
2023-06-01  6:20       ` Shaopeng Tan (Fujitsu)
2023-04-18 11:45 ` [PATCH v2 18/24] selftests/resctrl: Exclude shareable bits from schemata in CAT test Ilpo Järvinen
2023-04-18 11:45 ` [PATCH v2 19/24] selftests/resctrl: Pass the real number of tests to show_cache_info() Ilpo Järvinen
2023-04-22  0:20   ` Reinette Chatre
2023-04-18 11:45 ` [PATCH v2 20/24] selftests/resctrl: Move CAT/CMT test global vars to func they are used Ilpo Järvinen
2023-04-22  0:20   ` Reinette Chatre
2023-04-18 11:45 ` [PATCH v2 21/24] selftests/resctrl: Read in less obvious order to defeat prefetch optimizations Ilpo Järvinen
2023-05-31  5:33   ` Shaopeng Tan (Fujitsu)
2023-05-31  9:17     ` Ilpo Järvinen
2023-06-01  6:15       ` Shaopeng Tan (Fujitsu)
2023-06-02 13:51         ` Ilpo Järvinen
2023-06-02 14:39           ` Reinette Chatre
2023-06-14 13:02         ` Ilpo Järvinen
2023-06-16  5:30           ` Shaopeng Tan (Fujitsu)
2023-06-16  6:44             ` Ilpo Järvinen
2023-04-18 11:45 ` [PATCH v2 22/24] selftests/resctrl: Split measure_cache_vals() function Ilpo Järvinen
2023-04-22  0:21   ` Reinette Chatre
2023-04-18 11:45 ` [PATCH v2 23/24] selftests/resctrl: Split show_cache_info() to test specific and generic parts Ilpo Järvinen
2023-04-22  0:22   ` Reinette Chatre
2023-04-18 11:45 ` [PATCH v2 24/24] selftests/resctrl: Rewrite Cache Allocation Technology (CAT) test Ilpo Järvinen
2023-04-22  0:32   ` Reinette Chatre
2023-04-26 13:58     ` Ilpo Järvinen
2023-04-26 23:35       ` Reinette Chatre
2023-04-27  8:04         ` Ilpo Järvinen
2023-04-27 15:15           ` Reinette Chatre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox