diff options
author | Jeff Roberson <jeff@FreeBSD.org> | 2004-12-26 02:02:34 +0000 |
---|---|---|
committer | Jeff Roberson <jeff@FreeBSD.org> | 2004-12-26 02:02:34 +0000 |
commit | b0e485185fddd6ee87d332b4d260e6fec31c902b (patch) | |
tree | aeecdab78448dad548353460bcc9dfa0250b8e81 /tools/sched | |
parent | 3e16b3e04f49a293c41e120417403220537992e6 (diff) | |
download | src-test-b0e485185fddd6ee87d332b4d260e6fec31c902b.tar.gz src-test-b0e485185fddd6ee87d332b4d260e6fec31c902b.zip |
- Call self.checkstamp() in the cpu load parsing functions in case the
timestamp has wrapped.
Notes
Notes:
svn path=/head/; revision=139320
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 d1d563a6766b3..a59817669ac9c 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] |