diff options
author | jeff <jeff@FreeBSD.org> | 2004-12-26 02:02:34 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2004-12-26 02:02:34 +0000 |
commit | 8d13141666fa236fbdea1afd13b1711cf205a78b (patch) | |
tree | aeecdab78448dad548353460bcc9dfa0250b8e81 /tools/sched | |
parent | d74da89b42f731ff87769ffef96cbf429cead873 (diff) | |
download | FreeBSD-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/sched')
-rw-r--r-- | tools/sched/schedgraph.py | 4 |
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] |