Create more common interfaces in misc and use them
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | rteval: Create common functions in CpuList and SysTopologyrteval/ | +74 | 1 reply | |
| 2/6 | rteval: Make use of systopology instead of misc in rteval-cmdrteval-cmd | +23 | 0 replies | |
| 3/6 | rteval: Make use of systopology instead of misc in hackbenchrteval/ | +14 | 0 replies | |
| 4/6 | rteval: Make use of systopology instead of misc in kcompilerteval/ | +46 | 0 replies | |
| 5/6 | rteval: Make use of systopology instead of misc in stressng modulerteval/ | +8 | 0 replies | |
| 6/6 | rteval: Make use of systopology instead of misc in cyclictestrteval/ | +36 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/6] Create more common interfaces in misc and use them
The purpose of these patches is to reduce the number of interfaces that do the same thing and standardize on the functions in systopology. This has already been to some degree with past patches, but is not complete.
In particular I added the method online_cpus() to class SysTopology and the function collapse_cpulist() to the file systopology.py
Then I visited each file that imported from misc and made use of the new interfaces. This leaves only the function cpuinfo() in misc. I have not yet removed the duplicate functions in misc, but that will be done in a subsequent set of patches.
While making use of the interfaces in systopology from various other files, I took the opportunity to clean-up the files, namely I used f-strings instead of regular strings for readability, added some docstrings to functions and methods, and made use of the more pythonesque "in" instead of chained "ifs"
John Kacur (6):
rteval: Create common functions in CpuList and SysTopology
rteval: Make use of systopology instead of misc in rteval-cmd
rteval: Make use of systopology instead of misc in hackbench
rteval: Make use of systopology instead of misc in kcompile
rteval: Make use of systopology instead of misc in stressng module
rteval: Make use of systopology instead of misc in cyclictest
rteval-cmd | 45 ++++++------ rteval/modules/loads/hackbench.py | 30 ++++---- rteval/modules/loads/kcompile.py | 86 +++++++++++----------- rteval/modules/loads/stressng.py | 15 ++-- rteval/modules/measurement/cyclictest.py | 67 ++++++++++-------- rteval/systopology.py | 90 +++++++++++++++++++----- 6 files changed, 201 insertions(+), 132 deletions(-)
Signature · 1 line
2.37.1