Page MenuHomeFreeBSD

tcp: adding a functionality to define "trace points" so that BB logging can be enabled at specific events.
ClosedPublic

Authored by rrs on Apr 13 2022, 12:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 24, 7:15 PM
Unknown Object (File)
Fri, Nov 21, 8:26 PM
Unknown Object (File)
Oct 23 2025, 6:09 PM
Unknown Object (File)
Oct 14 2025, 5:29 PM
Unknown Object (File)
Oct 14 2025, 5:12 AM
Unknown Object (File)
Oct 14 2025, 5:12 AM
Unknown Object (File)
Oct 13 2025, 3:47 PM
Unknown Object (File)
Oct 5 2025, 3:20 AM

Details

Summary

This commit will add a new concept to rack, tracepoints. A tracepoint
is a defined point inserted into the code (3 are included in this initial patch) that
allows a developer to insert a point that might be of interest. The developer numbers
the point in the tcp_rack.h file and then can use sysctl to enable that (or all) trace
points. A limit is also given to how many BB logged connections will turn on
so that a box is not overrun by BB logging.

Test Plan

test turning on the 3 example trace points and make sure BB logging does occur when
we get TCP to hit one of the conditions.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped