Page MenuHomeFreeBSD

tcp_bblog.4: Add a manual page for TCP Blackbox Logging
Needs ReviewPublic

Authored by gbe on Apr 4 2026, 9:00 AM.
Tags
None
Referenced Files
F161892678: D56252.diff
Tue, Jul 7, 7:04 PM
Unknown Object (File)
Tue, Jul 7, 4:28 AM
Unknown Object (File)
Wed, Jun 10, 5:34 PM
Unknown Object (File)
May 28 2026, 12:37 PM
Unknown Object (File)
May 27 2026, 6:24 AM
Unknown Object (File)
May 27 2026, 6:15 AM
Unknown Object (File)
May 26 2026, 11:47 PM
Unknown Object (File)
May 26 2026, 9:12 AM
Subscribers

Details

Reviewers
rrs
tuexen
Group Reviewers
manpages
Summary

Add a manual page for the TCP Blackbox Logging.

The tcp_bblog facility provides structured logging of TCP stack activity
for debugging and performance analysis. It is implemented in the kernel
and allows per-connection tracing of TCP events with low overhead.

MFC after: 1 week

Test Plan

mandoc -Tlint checks

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 74527
Build 71410: arc lint + arc unit

Event Timeline

gbe requested review of this revision.Apr 4 2026, 9:00 AM
share/man/man4/tcp_bblog.4
15

I don't see this anywhere in the tree. Remove this line?

49

... or tcpsso. You might want to mention it.

86

This directory is not specific to black box logging, but the userland tool tcplog_dumper. Not sure if it should be mentioned here.

93

Maybe: Enable continual logging for all TCP connections:

97

You might want to add a note that using a config with

net.inet.tcp.bb.log_auto_mode=1

keeps up to the last net.inet.tcp.bb.log_session_limit entries stored at the TCP endpoint. Nothing is dumped to disk.
So when debugging TCP related panics, this is a good way to capture information about the panic.

108

You also might want to cross reference to tcpsso.8. The man page shows an example how to enable continual logging for a specific TCP connection via the command line.

122

It was written by Jonathan Looney (jtl) and Randall Stewart (rrs), not by me.

Thanks for the effort of writing an initial man page. I wanted to do this for a long time...

share/man/man4/tcp_bblog.4
108

You might also add a reference to Adventures in TCP/IP: TCP Black Box Logging.

Couple of minor nits, thank you so much for doing this! Also, don't forget to add this manual to the Makefile!

share/man/man4/tcp_bblog.4
2–6

we still use this blank comment for consistency with C, but we don't use the hyphen anymore. style.9 and the licensing guide suggest putting the copyright at the top in spdx only format.

14

these don't need to be quoted, and thank you so much for using mdoc conformant style.

51–52
72–73

tcp_bblog.4: Incorporate Feedback

  • Update Copyright statement to match style(9)
  • Mention tcpsso(8)
  • Add a note about the possible usage of net.inet.tcp.bb.log_auto_mode=1
  • Mention FreeBSD Journal entry "Adventures in TCP/IP: TCP Black Box Logging"
  • Correct the authors section
  • Connect tcp_bblog.4 to the build
gbe marked 10 inline comments as done.Sun, Jul 5, 9:26 AM
gbe added inline comments.
share/man/man4/tcp_bblog.4
97

I mentioned it in the CONFIGURATION section.

gbe marked 2 inline comments as done.Sun, Jul 5, 9:27 AM

incorporate feedback

Would you also add a Relnotes: yes? I'd like to list all new manpages in the manpage section of the release notes.

share/man/man4/tcp_bblog.4
72–73

This was for padding

95

These are not sentences and traditionally do not have periods or capital letters.