[PATCH 6/6] rteval: Reduce verbose debug logging in timerlat stoptrace parsing

John Kacur <[email protected]> Thu, 23 Jul 2026 15:47:51 -0400
Newsgroups org.kernel.vger.linux-rt-users
Message-ID <[email protected]>
Comment out verbose debug logging that dumps entire data structures
during stoptrace parsing. These were useful during initial development
but create excessive output now that the feature is stable.

Commented logs can be easily re-enabled for debugging if needed:
- Full self.__stdata dictionary dump
- Per-item cpu/key/value logging during XML generation
- Complete posttrace output dump

Assisted-by: Claude:claude-sonnet-4-5
Signed-off-by: John Kacur <[email protected]>
---
 rteval/modules/measurement/timerlat.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/rteval/modules/measurement/timerlat.py b/rteval/modules/measurement/timerlat.py
index f983cedf0daa..735141e6796d 100644
--- a/rteval/modules/measurement/timerlat.py
+++ b/rteval/modules/measurement/timerlat.py
@@ -653,7 +653,7 @@ class Timerlat(rtevalModulePrototype):
         rep_n.addChild(stoptrace_invoked_n)
 
         if self.stcpu != -1:
-            self._log(Log.DEBUG, f'self.__stdata = {self.__stdata}')
+            # self._log(Log.DEBUG, f'self.__stdata = {self.__stdata}')
             for cpu in self.__stdata:
                 # This is  Max timerlat IRQ latency from idle
                 # With no other data from that cpu, so don't create a
@@ -663,7 +663,7 @@ class Timerlat(rtevalModulePrototype):
                 stoptrace_n = libxml2.newNode('stoptrace_report')
                 stoptrace_n.newProp("CPU", str(cpu))
                 for k, v in self.__stdata[cpu].items():
-                    self._log(Log.DEBUG, f"cpu={cpu}, k={k}, v={v}")
+                    # self._log(Log.DEBUG, f"cpu={cpu}, k={k}, v={v}")
                     if isinstance(v, tuple):
                         latency = str(v[0])
                         percent = str(v[1])
@@ -687,8 +687,8 @@ class Timerlat(rtevalModulePrototype):
                         cpu_n.newProp('unit', 'us')
                 rep_n.addChild(stoptrace_n)
 
-            self._log(Log.DEBUG, f'timerlat: posttrace = \n{self.__posttrace}')
-            self._log(Log.DEBUG, 'timerlat: posttrace END')
+            # self._log(Log.DEBUG, f'timerlat: posttrace = \n{self.__posttrace}')
+            # self._log(Log.DEBUG, 'timerlat: posttrace END')
             for cpu in self.__stdata:
                 for k, v in self.__stdata[cpu].items():
                     if isinstance(v, tuple):
-- 
2.55.0