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)
Tue, Sep 10, 11:32 AM
Unknown Object (File)
Aug 5 2024, 11:22 PM
Unknown Object (File)
Aug 2 2024, 5:22 AM
Unknown Object (File)
Aug 1 2024, 12:01 AM
Unknown Object (File)
Jul 10 2024, 12:28 PM
Unknown Object (File)
Jul 1 2024, 8:29 PM
Unknown Object (File)
Jun 30 2024, 9:09 AM
Unknown Object (File)
Jun 29 2024, 10:49 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