diff --git a/scripts/parse_lat.py b/scripts/parse_lat.py new file mode 100755 index 0000000..424a32e --- /dev/null +++ b/scripts/parse_lat.py @@ -0,0 +1,9 @@ +#!/usr/bin/python3 +import sys,re + +way=sys.argv[1] +for line in sys.stdin: + res = re.match(r".*Packet (\d+) latency (\d+)µs with flag (\d+).*", line) + if not res: continue + pid,lat,flag = res.groups() + print(f"{pid},{lat},{flag},{way}")