summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2004-12-26 02:02:34 +0000
committerjeff <jeff@FreeBSD.org>2004-12-26 02:02:34 +0000
commit8d13141666fa236fbdea1afd13b1711cf205a78b (patch)
treeaeecdab78448dad548353460bcc9dfa0250b8e81 /tools
parentd74da89b42f731ff87769ffef96cbf429cead873 (diff)
downloadFreeBSD-src-8d13141666fa236fbdea1afd13b1711cf205a78b.zip
FreeBSD-src-8d13141666fa236fbdea1afd13b1711cf205a78b.tar.gz
- Call self.checkstamp() in the cpu load parsing functions in case the
timestamp has wrapped.
Diffstat (limited to 'tools')
-rw-r--r--tools/sched/schedgraph.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/sched/schedgraph.py b/tools/sched/schedgraph.py
index d1d563a..a598176 100644
--- a/tools/sched/schedgraph.py
+++ b/tools/sched/schedgraph.py
@@ -990,6 +990,8 @@ class KTRFile:
Lend(bythread, cpu, timestamp, newprio, thread)
def cpuload(self, cpu, timestamp, count):
+ if (self.checkstamp(timestamp) == 0):
+ return
cpu = int(cpu)
try:
load = self.load[cpu]
@@ -1000,6 +1002,8 @@ class KTRFile:
Count(load, cpu, timestamp, count)
def loadglobal(self, cpu, timestamp, count):
+ if (self.checkstamp(timestamp) == 0):
+ return
cpu = 0
try:
load = self.load[cpu]
OpenPOWER on IntegriCloud