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, May 6, 4:14 PM
Unknown Object (File)
Fri, May 3, 9:27 AM
Unknown Object (File)
Mar 30 2024, 5:11 PM
Unknown Object (File)
Mar 30 2024, 12:58 PM
Unknown Object (File)
Mar 15 2024, 1:35 AM
Unknown Object (File)
Mar 7 2024, 10:15 AM
Unknown Object (File)
Mar 4 2024, 8:56 AM
Unknown Object (File)
Feb 16 2024, 8: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