Skip to content

rteval: Refactor CPU list logic

[email protected] linux-rt-users 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 7 repliesIn review
  2. v13 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3rteval: Refactor collapse_cpulist in systopologyrteval-cmd rteval/modules/loads/__init__.py rteval/modules/measurement/__init__.py +2 more+30 -560 replies
2/3rteval: Minor improvements to CpuList classrteval/systopology.py+12 -147 replies
3/3rteval: Convert CpuList class to a modulerteval-cmd rteval/cpulist_utils.py rteval/modules/loads/__init__.py +6 more+175 -1890 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] rteval: Refactor CPU list logic

From: Tomas Glozar <[email protected]>

The main change of this patchset is the removal of the CpuList class, moving the related logic to a new module rteval.cpulist_utils. Motivation for this is further explained in the corresponding commit description.

In addition to that, there are a few smaller fixes in the first two commits. These can be merged separately from the removal of the CpuList class in the third commit.

v2: First patch ("rteval: Refactor collapse_cpulist in systopology") broke --measurement-run-on-isolcpus because the new implementation of collapse_cpulist does not allow for string cpus in input. Changed to always convert cpus to string when passing to collapse_cpulist.

Third patch ("rteval: Convert CpuList class to a module") was missing replacing the old calls to CpuList functions with the new cpulist_util ones at a few places, causing rteval to fail to run with --*-cpulist option. Fixed.

Tomas Glozar (3):
rteval: Refactor collapse_cpulist in systopology
rteval: Minor improvements to CpuList class
rteval: Convert CpuList class to a module

 rteval-cmd                               |  17 +-
 rteval/cpulist_utils.py                  | 125 +++++++++++++++
 rteval/modules/loads/__init__.py         |   8 +-
 rteval/modules/loads/hackbench.py        |   9 +-
 rteval/modules/loads/kcompile.py         |  14 +-
 rteval/modules/loads/stressng.py         |   9 +-
 rteval/modules/measurement/__init__.py   |   8 +-
 rteval/modules/measurement/cyclictest.py |  12 +-
 rteval/systopology.py                    | 190 ++---------------------
 9 files changed, 175 insertions(+), 217 deletions(-)
 create mode 100644 rteval/cpulist_utils.py
Signature · 1 line
2.41.0