9b29dd6c7b
Change the default kernel to linux-6.10.5-rteval Fix parsing in kcompile for the correct kernel to compile Resolves: RHEL-54310 Signed-off-by: John Kacur <jkacur@redhat.com>
104 lines
5.0 KiB
Diff
104 lines
5.0 KiB
Diff
From 06acb385b2074f39146d5c1a41cb2133c43ade82 Mon Sep 17 00:00:00 2001
|
|
From: John Kacur <jkacur@redhat.com>
|
|
Date: Sun, 18 Aug 2024 09:48:49 -0400
|
|
Subject: [PATCH 1/3] rteval: restore all load module options
|
|
|
|
Commit 56c7cf63942d rteval: Allow arguments specific to module group
|
|
|
|
intended to allow group options to the overall measurement modules without
|
|
applying to the load modules. It inadvertently disabled options for most
|
|
load modules such as hackbench and kcompile.
|
|
|
|
This patch reworks the overall group mechanism a little bit to restore
|
|
these menus.
|
|
|
|
Signed-off-by: John Kacur <jkacur@redhat.com>
|
|
---
|
|
rteval/modules/__init__.py | 22 +++++++++++++++++-----
|
|
rteval/modules/measurement/__init__.py | 12 +-----------
|
|
2 files changed, 18 insertions(+), 16 deletions(-)
|
|
|
|
diff --git a/rteval/modules/__init__.py b/rteval/modules/__init__.py
|
|
index acd6330788e2..eb29db86ce7a 100644
|
|
--- a/rteval/modules/__init__.py
|
|
+++ b/rteval/modules/__init__.py
|
|
@@ -280,10 +280,24 @@ reference from the first import"""
|
|
|
|
grparser = parser.add_argument_group(f"Group Options for {self.__modtype} modules")
|
|
grparser.add_argument(f'--{self.__modtype}-cpulist',
|
|
- dest=f'{self.__modtype}___cpulist', action='store', default="",
|
|
+ dest=f'{self.__modtype}___cpulist', action='store',
|
|
+ default="",
|
|
help=f'CPU list where {self.__modtype} modules will run',
|
|
metavar='CPULIST')
|
|
|
|
+ # Set up options for measurement modules only
|
|
+ if self.__modtype == 'measurement':
|
|
+ grparser.add_argument(f'--{self.__modtype}-run-on-isolcpus',
|
|
+ dest = f'{self.__modtype}___run_on_isolcpus',
|
|
+ action = "store_true",
|
|
+ default = config.GetSection("measurement").setdefault("run-on-isolcpus", "false").lower() == "true",
|
|
+ help = "Include isolated CPUs in default cpulist")
|
|
+ grparser.add_argument('--idle-set',
|
|
+ dest='measurement___idlestate',
|
|
+ metavar='IDLESTATE',
|
|
+ default=None,
|
|
+ help='Idle state depth to set on cpus running measurement modules')
|
|
+
|
|
for (modname, mod) in list(self.__modsloaded.items()):
|
|
opts = mod.ModuleParameters()
|
|
if len(opts) == 0:
|
|
@@ -296,7 +310,7 @@ reference from the first import"""
|
|
# Ignore if a section is not found
|
|
cfg = None
|
|
|
|
- modgrparser = parser.add_argument_group(f"Options for the {shortmod} module")
|
|
+ grparser = parser.add_argument_group(f"Options for the {shortmod} module")
|
|
for (o, s) in list(opts.items()):
|
|
descr = 'descr' in s and s['descr'] or ""
|
|
metavar = 'metavar' in s and s['metavar'] or None
|
|
@@ -311,7 +325,7 @@ reference from the first import"""
|
|
default = 'default' in s and s['default'] or None
|
|
|
|
|
|
- modgrparser.add_argument(f'--{shortmod}-{o}',
|
|
+ grparser.add_argument(f'--{shortmod}-{o}',
|
|
dest=f"{shortmod}___{o}",
|
|
action='store',
|
|
help='%s%s' % (descr,
|
|
@@ -319,8 +333,6 @@ reference from the first import"""
|
|
default=default,
|
|
metavar=metavar)
|
|
|
|
- return grparser
|
|
-
|
|
|
|
def InstantiateModule(self, modname, modcfg, modroot=None):
|
|
"""Imports a module and instantiates an object from the modules create() function.
|
|
diff --git a/rteval/modules/measurement/__init__.py b/rteval/modules/measurement/__init__.py
|
|
index 9314d1cb6bbc..44708ce0b035 100644
|
|
--- a/rteval/modules/measurement/__init__.py
|
|
+++ b/rteval/modules/measurement/__init__.py
|
|
@@ -29,17 +29,7 @@ class MeasurementModules(RtEvalModules):
|
|
|
|
def SetupModuleOptions(self, parser):
|
|
"Sets up all the measurement modules' parameters for the option parser"
|
|
- grparser = super().SetupModuleOptions(parser)
|
|
-
|
|
- # Set up options specific for measurement module group
|
|
- grparser.add_argument("--measurement-run-on-isolcpus",
|
|
- dest="measurement___run_on_isolcpus",
|
|
- action="store_true",
|
|
- default=self._cfg.GetSection("measurement").setdefault("run-on-isolcpus", "false").lower()
|
|
- == "true",
|
|
- help="Include isolated CPUs in default cpulist")
|
|
- grparser.add_argument('--idle-set', dest='measurement___idlestate', metavar='IDLESTATE',
|
|
- default=None, help='Idle state depth to set on cpus running measurement modules')
|
|
+ super().SetupModuleOptions(parser)
|
|
|
|
|
|
def Setup(self, modparams):
|
|
--
|
|
2.46.0
|
|
|