diff options
author | jhb <jhb@FreeBSD.org> | 2008-01-25 19:24:12 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2008-01-25 19:24:12 +0000 |
commit | e2e2970333e0b30a8ef05ae9dd1807132d521b33 (patch) | |
tree | 69edacf80a5a90ca1c4853470231e1fb528a4045 /tools/sched/schedgraph.py | |
parent | 62d20a5f3916725144d3f7f28fd2f78de7cb0578 (diff) | |
download | FreeBSD-src-e2e2970333e0b30a8ef05ae9dd1807132d521b33.zip FreeBSD-src-e2e2970333e0b30a8ef05ae9dd1807132d521b33.tar.gz |
Update the timestamp regexps in syncstamp() and monostamp() for > 99999
traces where there isn't any leading whitespace before the record number
in the ktrdump output.
Diffstat (limited to 'tools/sched/schedgraph.py')
-rw-r--r-- | tools/sched/schedgraph.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/sched/schedgraph.py b/tools/sched/schedgraph.py index 5e41c1c..be5537d 100644 --- a/tools/sched/schedgraph.py +++ b/tools/sched/schedgraph.py @@ -978,7 +978,7 @@ class KTRFile: def synchstamp(self, lines): status.startup("Rationalizing Timestamps") - tstamp_re = re.compile("\s+\d+\s+(\d+)\s+(\d+)\s+.*") + tstamp_re = re.compile("\s*\d+\s+(\d+)\s+(\d+)\s+.*") for line in lines: m = tstamp_re.match(line) if (m != None): @@ -989,7 +989,7 @@ class KTRFile: def monostamp(self, lines): laststamp = None - tstamp_re = re.compile("\s+\d+\s+(\d+)\s+(\d+)\s+.*") + tstamp_re = re.compile("\s*\d+\s+(\d+)\s+(\d+)\s+.*") for line in lines: m = tstamp_re.match(line) if (m == None): |