forked from nuttx/nuttx-update
tools/parsetrace: fix context swtich parsing error
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
parent
0797b03c08
commit
e1c9b5def0
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue