Skip to contentSkip to conversation

rteval: services.py: Fix SyntaxWarning

PATCH New John Kacur 1 participant 2 messages Jun 18, 2025

lore
Share & tools
lore

John Kacur

author
#0 lore raw

PATCH 1/2 rteval: services.py: Fix SyntaxWarning

In services.py we get a SyntaxWarning: invalid escape sequence '\(' using python >= 3.12

Fix this by using a raw string.

---
 rteval/sysinfo/services.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
rteval/sysinfo/services.py +1 -1
index e98017804841..c3c155354e07 100644
@@ -42,7 +42,7 @@ class SystemServices:
             servicename = os.path.basename(service)
             if not [1 for p in reject if fnmatch.fnmatch(servicename, p)] \
                     and os.access(service, os.X_OK):
-                cmd = f'{getcmdpath("grep")} -qs "\(^\|\W\)status)" {service}'
+                cmd = fr'{getcmdpath("grep")} -qs "\(^\|\W\)status)" {service}'
                 c = subprocess.Popen(cmd, shell=True, encoding='utf-8')
                 c.wait()
                 if c.returncode == 0:
Signature · 1 line
2.49.0
author
#1 lore raw

PATCH 2/2 rteval: Make timerlat the default for rteval

Return timerlat to be the default measurement module for rteval Also make the default base interval 100us to match cyclictest

---
 rteval.conf                            | 4 ++--
 rteval/modules/measurement/timerlat.py | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
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
rteval/modules/measurement/timerlat.py +1 -1
index fe29f34bccbd..5bfc495217ea 100644
@@ -509,7 +509,7 @@ class Timerlat(rtevalModulePrototype):
 def ModuleParameters():
     """ default parameters """
     return {"interval": {"descr": "Base interval or period of threads in microseconds",
-                         "default": 1100,
+                         "default": 100,
                          "metavar": "INTV_US"},
             "priority": {"descr": "Run rtla timerlat with this priority",
                          "default": 95,
Signature · 1 line
2.49.0