summaryrefslogtreecommitdiffstats
path: root/tools/sched/schedgraph.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/sched/schedgraph.py')
-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