Skip to content

Commit

Permalink
Fix strace regexes
Browse files Browse the repository at this point in the history
  • Loading branch information
s7nfo committed Jul 2, 2024
1 parent a82ed66 commit 3afb5ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/cirron/tracer.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ def __str__(self):


def parse_strace(f):
syscall_pattern = re.compile(r"^(\d+) (\d+\.\d+) (\w+)\((.*?)\) += +(.*?) <(.*?)>$")
signal_pattern = re.compile(r"^(\d+) (\d+\.\d+) --- (\w+) {(.*)} ---$")
syscall_pattern = re.compile(
r"^(\d+) +(\d+\.\d+) (\w+)\((.*?)\) += +(.*?) <(.*?)>$"
)
signal_pattern = re.compile(r"^(\d+) +(\d+\.\d+) --- (\w+) {(.*)} ---$")
unfinished_pattern = re.compile(
r"^(\d+) (\d+\.\d+) (\w+)\((.*?) +<unfinished \.\.\.>$"
)
Expand Down

0 comments on commit 3afb5ae

Please sign in to comment.