Page MenuHomeFreeBSD

ddb: add optional printing of BBLog entries
ClosedPublic

Authored by tuexen on May 31 2025, 4:19 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 24, 5:02 PM
Unknown Object (File)
Tue, Jun 24, 3:34 AM
Unknown Object (File)
Mon, Jun 23, 6:54 PM
Unknown Object (File)
Mon, Jun 23, 1:23 PM
Unknown Object (File)
Sun, Jun 22, 11:17 PM
Unknown Object (File)
Fri, Jun 20, 8:44 PM
Unknown Object (File)
Fri, Jun 20, 6:49 PM
Unknown Object (File)
Jun 16 2025, 6:46 AM
Subscribers

Details

Summary

Add a /b option to show tcpcb and show all tcpcbs to print BBLog entries. Right now this supports the entries generated by the FreeBSD default TCP stack. It should help in debugging issues reported by syzkaller, for example panic: tcp_do_segment: sent too much: NUM>NUM.
The syntax for printing sent and received packets is similar to the one used by packetdrill, since the output of ddb will be used to create packetdrill scripts for debugging.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This looks to do what is advertised in some simple tests. ddb is pretty fragile for me to use on the best of days so I'm happy enough

This revision is now accepted and ready to land.Jun 10 2025, 1:06 PM
This revision was automatically updated to reflect the committed changes.