stracer: Upgrade to the new protocol

Protocol changes:
- Swap TID/PID fields for tighter packing now that TID is a uint64.
- Symbolication modules entries are now tuples: (path, *metadata).
  Metadata is currently ignored.
This commit is contained in:
Ole André Vadla Ravnås committed 2026-02-26 23:08:16 +01:00
1 parent 460d9e9b55
commit a62f339417
1 file changed
+2 -2
+2 -2
View File
@@ -964,7 +964,7 @@ class StraceApplication(ConsoleApplication):
if mod_index == 0xFFFFFFFF:
out.append(f" 0x{addr:x}")
else:
path = modules[mod_index]
path, *extra = modules[mod_index]
base = path.rsplit("/", 1)[-1]
out.append(f" {base}+0x{offset:x}")
for addr in stack[len(entries):]:
@@ -1186,7 +1186,7 @@ class SyscallTracer:
self._notify()
def _parse_event_row(self, row) -> SyscallEvent:
phase, time_ns, pid, tid, nr, stack_id, map_gen, args_or_retval, attachments = row
phase, time_ns, tid, pid, nr, stack_id, map_gen, args_or_retval, attachments = row
abi = self._abi_by_pid.get(pid)