Fix: set proc name in I/O analysis if previously unknown
authorAntoine Busque <abusque@efficios.com>
Sat, 20 Feb 2016 00:09:56 +0000 (19:09 -0500)
committerAntoine Busque <abusque@efficios.com>
Wed, 24 Feb 2016 23:24:03 +0000 (18:24 -0500)
Signed-off-by: Antoine Busque <abusque@efficios.com>
lttnganalyses/core/io.py

index 7b1980592b551bdafeac14b24703ea6be34d3677..09c2ed8b68e5915968538d4a2413d82bf0d7ff28 100644 (file)
@@ -241,6 +241,13 @@ class IoAnalysis(Analysis):
         proc_stats.update_io_stats(io_rq, fd_types)
         parent_stats.update_fd_stats(io_rq)
 
+        # Check if the proc stats comm corresponds to the actual
+        # process comm. It might be that it was missing so far.
+        if proc_stats.comm != proc.comm:
+            proc_stats.comm = proc.comm
+        if parent_stats.comm != parent_proc.comm:
+            parent_stats.comm = parent_proc.comm
+
     def _process_create_parent_proc(self, **kwargs):
         proc = kwargs['proc']
         parent_proc = kwargs['parent_proc']
This page took 0.024674 seconds and 5 git commands to generate.