Lines Matching defs:Event
174 not isinstance(rhs, Event) or 'slots' not in rhs.name.lower()):
200 return Event(name)
248 return Event(name)
298 return Event(name)
311 class Event(Expression):
323 return f'Event(r"{self.name}")'
329 return isinstance(other, Event) and self.name == other.name
405 def source_count(event: Event) -> Function:
411 def has_event(event: Event) -> Function:
416 def strcmp_cpuid_str(cpuid: Event) -> Function:
535 eval routine. First tokens are mapped to Event calls, then
548 # First try to convert everything that looks like a string (event name) into Event(r"EVENT_NAME").
551 r'Event(r"\1")', py)
553 py = re.sub(r'#Event\(r"([^"]*)"\)', r'Literal("#\1")', py)
554 # Convert accidentally converted hex constants ("0Event(r"xDEADBEEF)"") back to a constant,
555 # but keep it wrapped in Event(), otherwise Python drops the 0x prefix and it gets interpreted as
557 py = re.sub(r'0Event\(r"[xX]([0-9a-fA-F]*)"\)', r'Event("0x\1")', py)
559 py = re.sub(r'([0-9]+)Event\(r"(e[0-9]+)"\)', r'\1\2', py)
564 py = re.sub(rf'Event\(r"{kw}"\)', kw, py)