From 9a51277a1dad7ee3037270975b01afe72f9b3a19 Mon Sep 17 00:00:00 2001 From: LIU Yu Date: Tue, 9 Oct 2012 00:19:05 +0800 Subject: [PATCH] fixed machine check code --- sample2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample2.py b/sample2.py index fa7d5b8..8744cc7 100644 --- a/sample2.py +++ b/sample2.py @@ -101,7 +101,7 @@ def probe(self): def __call__(self, e, a): # handle SYSCALL/SYSRET events with local rules if e.type in (S_EVENT_SYSCALL, S_EVENT_SYSRET): - if machine is 'x86_64' and e.ext0 is not 0: + if machine == 'x86_64' and e.ext0 != 0: return self._KILL_RF(e, a) return self.sc_table[e.data](e, a) # bypass other events to base class