1
0
Fork 0
forked from nuttx/nuttx-update

tools/parsetrace: fix context swtich parsing error

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai 2023-03-09 11:10:14 +08:00 committed by Petro Karashchenko
parent 0797b03c08
commit e1c9b5def0

View file

@ -98,11 +98,11 @@ class OtherModel(BaseModel):
def parse(self, string):
pattern = re.compile(
r"[sched_switch|sched_wakeup_new|"
r"sched_waking|irq_handler_entry|irq_handler_exit]:.*"
r"sched_waking|irq_handler_entry|irq_handler_exit]"
)
ret = pattern.match(string)
if ret is not None:
return OtherModel(string)
return OtherModel(payload = string)
class AtraceModel(BaseModel):