Skip to contentSkip to conversation

rteval: preface idle-set IDLESTATE with --measurement

PATCH New John Kacur 1 participant 2 messages Nov 14, 2024

lore
Share & tools
lore

John Kacur

author
#0 lore raw

PATCH 1/2 rteval: preface idle-set IDLESTATE with --measurement

Setting the idle state belongs to the Group Options for measurement modules and thus should be prefaced with --measurement just like the other options in that group. This change fixes that.

---
 rteval/modules/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rteval/modules/__init__.py +1 -1
index 98276514de95..d60877783670 100644
@@ -298,7 +298,7 @@ reference from the first import"""
                                   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',
+            grparser.add_argument(f'--{self.__modtype}-idle-set',
                                   dest='measurement___idlestate',
                                   metavar='IDLESTATE',
                                   default=None,
Signature · 1 line
2.47.0
author
#1 lore raw

PATCH 2/2 rteval: Make rtla timerlat the default measurement module

This change makes timerlat the default measurement module. You can still run cyclictest by editing the rteval.conf module but if you don't specify, timerlat will run

---
 rteval-cmd  | 2 +-
 rteval.conf | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
rteval-cmd +1 -1
index 4e13d312a24a..9875903c0107 100755
@@ -250,7 +250,7 @@ if __name__ == '__main__':
 
         if not config.HasSection('measurement'):
             config.AppendConfig('measurement', {
-                'cyclictest' : 'module',
+                'timerlat' : 'module',
                 'sysstat' : 'module'})
 
         # Prepare log levels before loading modules, not to have unwanted log messages
rteval.conf +2 -2
index 601410b51c28..46a9b1743716 100644
@@ -6,8 +6,8 @@ duration:  60.0
 report_interval: 600
 
 [measurement]
-cyclictest: module
-# timerlat: module
+# cyclictest: module
+timerlat: module
 
 [loads]
 kcompile:  module
Signature · 1 line
2.47.0