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
F108311575: D34898.id105018.diff
Thu, Jan 23, 6:48 PM
F108310381: D34898.id104958.diff
Thu, Jan 23, 6:38 PM
Unknown Object (File)
Dec 2 2024, 5:15 AM
Unknown Object (File)
Nov 12 2024, 9:17 AM
Unknown Object (File)
Nov 12 2024, 8:09 AM
Unknown Object (File)
Oct 16 2024, 1:24 PM
Unknown Object (File)
Oct 3 2024, 4:07 PM
Unknown Object (File)
Oct 3 2024, 12:25 PM

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