fix: syscall entry might not exists after reset_total
authorJulien Desfossez <jdesfossez@efficios.com>
Wed, 4 Feb 2015 05:39:10 +0000 (00:39 -0500)
committerJulien Desfossez <jdesfossez@efficios.com>
Wed, 4 Feb 2015 05:39:10 +0000 (00:39 -0500)
Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>
linuxautomaton/linuxautomaton/syscalls.py

index 18bb1627baa9987aaab1fa3c8f2f5cfc67fe9244..c064a6f128993ec08f3bba067ebc6527e716fd74 100644 (file)
@@ -508,6 +508,8 @@ class SyscallsStateProvider(sp.StateProvider):
 
     def _per_tid_syscall_exit(self, name, ret, event, c):
         t = self.tids[c.current_tid]
+        if not name in t.syscalls:
+            return
         s = sv.SyscallEvent()
         s.ret = ret
         s.entry_ts = t.current_syscall["start"]
This page took 0.026419 seconds and 5 git commands to generate.