summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-29 17:10:37 +0300
committerPaul Buetow <paul@buetow.org>2026-05-29 17:10:37 +0300
commitfabe36b214a325fba880024106afa95c5153ddab (patch)
treedb4a59ad7d42029508179f933a7f5c60169808a9 /cmd
parent0961f9df1f51e8f6d7f31cef9234728bcccd188d (diff)
test(generate): lock in sendmsg write byte-count classification
Audit of sendmsg(2) found the tracing implementation already correct: enter is an fd_event with fd=args[0] (the kernel tracepoint first field is 'int fd'), family is Network, and the exit is WRITE_CLASSIFIED so the bytes-sent return value is counted as written, consistent with the send/sendto/write siblings and distinct from recvmsg (read side) and the deferred sendmmsg batch variant. Add TestClassifySendmsgWriteByteCount as a lock-in regression test pinning KindFd + FamilyNetwork + WRITE_CLASSIFIED, with recvmsg and sendmmsg contrast cases to guard against read/write and batch misclassification. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions