aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trappy/ftrace.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/trappy/ftrace.py b/trappy/ftrace.py
index ab9ed0a..e2a636c 100644
--- a/trappy/ftrace.py
+++ b/trappy/ftrace.py
@@ -299,7 +299,8 @@ subclassed by FTrace (for parsing FTrace coming from trace-cmd) and SysTrace."""
return
# Remove empty arrays from the trace
- data_str = re.sub(r"[A-Za-z0-9_]+=\{\} ", r"", data_str)
+ if "={}" in data_str:
+ data_str = re.sub(r"[A-Za-z0-9_]+=\{\} ", r"", data_str)
trace_class.append_data(timestamp, comm, pid, cpu, self.lines, data_str)
self.lines += 1