diff options
author | jeff <jeff@FreeBSD.org> | 2004-12-26 01:18:49 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2004-12-26 01:18:49 +0000 |
commit | d74da89b42f731ff87769ffef96cbf429cead873 (patch) | |
tree | b2db48588bc4497a4cb2e5cab4caef039261363e /tools/sched/schedgraph.py | |
parent | 764e80eed711d8e16b85713fef00cd87b858836e (diff) | |
download | FreeBSD-src-d74da89b42f731ff87769ffef96cbf429cead873.zip FreeBSD-src-d74da89b42f731ff87769ffef96cbf429cead873.tar.gz |
- The regexp for the load should have been (/d+), fix this so loads over 9
are properly represented.
Diffstat (limited to 'tools/sched/schedgraph.py')
-rw-r--r-- | tools/sched/schedgraph.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/sched/schedgraph.py b/tools/sched/schedgraph.py index 25493a2..d1d563a 100644 --- a/tools/sched/schedgraph.py +++ b/tools/sched/schedgraph.py @@ -487,6 +487,7 @@ class Yielding(StateEvent): enabled = 1 def __init__(self, thread, cpu, timestamp, prio): StateEvent.__init__(self, thread, cpu, timestamp) + self.skipnext = 1 self.prio = prio self.textadd(("prio:", self.prio, 0)) @@ -853,8 +854,8 @@ class KTRFile: ktrstr += " newprio (\d+) by " + tdname sched_prio_re = re.compile(ktrhdr + ktrstr) - cpuload_re = re.compile(ktrhdr + "load: (\d)") - loadglobal_re = re.compile(ktrhdr + "global load: (\d)") + cpuload_re = re.compile(ktrhdr + "load: (\d+)") + loadglobal_re = re.compile(ktrhdr + "global load: (\d+)") parsers = [[cpuload_re, self.cpuload], [loadglobal_re, self.loadglobal], |