Signed-off-by: geraldo netto <geraldone...@gmail.com>
---
 scripts/post-processing/scheduler/trace_sched_timings.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/scripts/post-processing/scheduler/trace_sched_timings.py 
b/scripts/post-processing/scheduler/trace_sched_timings.py
index 5889ce3..189940d 100644
--- a/scripts/post-processing/scheduler/trace_sched_timings.py
+++ b/scripts/post-processing/scheduler/trace_sched_timings.py
@@ -8,8 +8,11 @@ threads = {}
 # thread -> time of schedule-in
 sched = {}
 
+# regular expression pattern
+pattern = "(0x.*?)\s+([0-9]+)\s+([0-9]+)\.([0-9]+)\s+(\S+)\s+(.*)\n"
+
 for tr in l:
-    (threadp, cpu, sec, microsec, event, info) = 
re.match("(0x.*?)\s+([0-9]+)\s+([0-9]+)\.([0-9]+)\s+(\S+)\s+(.*)\n", 
tr).groups()
+    (threadp, cpu, sec, microsec, event, info) = re.match(pattern, tr).groups()
     sec = int(sec)
     microsec = int(microsec)
 
-- 
2.7.4

-- 
You received this message because you are subscribed to the Google Groups "OSv 
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to osv-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to