summaryrefslogtreecommitdiff
path: root/integrationtests/sampling_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-30 17:04:13 +0300
committerPaul Buetow <paul@buetow.org>2026-05-30 17:04:13 +0300
commit231938bc6a768953cca1d0b77298f9199fb8bc61 (patch)
treecb50deae9cb6ca8f5ba48de5eddd3a628dcdaf35 /integrationtests/sampling_test.go
parentd071a75f44bc14dce364142483b072272c81313e (diff)
test(getsockname): lock in KindFd/FamilyNetwork/UNCLASSIFIED classification
Audit of getsockname(2) confirmed correct tracing: enter is KindFd with the sockfd captured from args[0], family is FamilyNetwork, and the exit ret_event is UNCLASSIFIED (0/-1, no byte count) — matching the man page and its bind/connect/listen/accept/getpeername siblings. Integration coverage already exists (ioworkload calls Getsockname; TestSocketIntro- spection asserts enter_getsockname). Add lock-in tests symmetric with the existing getpeername coverage: - TestClassifyExitGetsockname: exit tracepoint maps to KindRet. - TestGenerateGetsocknameHandler: enter captures fd=args[0]; the addr output pointer (args[1]) and addrlen in/out pointer (args[2]) are not captured, and the exit stays UNCLASSIFIED. - FormatGetsockname/FormatExitGetsockname fixtures copied verbatim from the real kernel tracepoint format (third arg is a pointer, unlike bind's by-value addrlen). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'integrationtests/sampling_test.go')
0 files changed, 0 insertions, 0 deletions