rteval: services.py: Fix SyntaxWarning
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.
Signed-off-by John Kacur <[email protected]>
--- rteval/sysinfo/services.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
rteval/sysinfo/services.py +1 -1
@@ -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
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
Signed-off-by John Kacur <[email protected]>
--- rteval.conf | 4 ++-- rteval/modules/measurement/timerlat.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
rteval.conf +2 -2
@@ -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
@@ -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