def __len__(self): if isinstance(self.env.event, (event.function_exit, event.function_entry)): f = self.env.function_name elif isinstance(self.env.event, (event.syscall_exit, event.syscall_entry)): f = self.env.syscall_name else: raise Exception() p = prototype.get_prototype(f) if p: return len(p.getArguments()) else: raise prototype.MissingPrototype("Missing prototype for '%s'" % (f))
def __prototype(self): fname = self.functionname() if fname: return prototype.get_prototype(fname) else: return None