Beispiel #1
0
 def __init__(self, trace, event=None):
     TraceLine.__init__(self, trace)
     if not event:
         self.event = schedSwitchParse(trace["data"])
     else:
         self.event = event
     self.trace["comm"] = self.event["prev_comm"]
     if not self.event:
         raise ValueError
     self.sleepRanges = None
     self.timeToWake = 0.0
     self.stacktrace = ""
     self.wakeupStacktrace = ""
     self.changeCpu = False
     self.woken = 0.0
     self.hadWakeEvent = False
Beispiel #2
0
 def __init__(self, trace):
     TraceLine.__init__(self, trace)
     m = match_raw_sys_enter_re.match(trace["data"])
     if m:
         self.sysnr = m.group(1)
         self.raw_format = True
     else:
         m = match_sys_enter_re.match(trace["data"])
         if m is None:
             raise ValueError
         self.raw_format = False
     if self.raw_format:
         self.syscall = getSyscallName(self.sysnr)
     else:
         self.syscall = m.group(1)
     self.args = m.group(2)
     self.runtime = 0