diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-30 21:50:29 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-30 21:50:29 +0300 |
| commit | 654048bb6cb052a3b5f414508ab4839635865725 (patch) | |
| tree | e14e5d1c5499091bdfa595fa43944ce6b4ca8c93 /internal/statsengine/process.go | |
| parent | b3e6798b340af13a1a2a4c670f5d55fae9f48a40 (diff) | |
test(generate): lock in listen(2) handler classification
Audit of syscall listen(2): int listen(int sockfd, int backlog). Confirmed
the tracing implementation already matches the man page and its socket
siblings (bind/connect/accept/getsockname/getpeername):
- KindFd, capturing ev->fd = args[0] (sockfd)
- FamilyNetwork
- exit ret_event UNCLASSIFIED (returns 0/-1, no byte count)
listen was already covered by the name-based classify/family/retclassify
tests but lacked a dedicated generated-handler lock-in test like its
bind/getsockname siblings. Add FormatListen/FormatExitListen tracepoint
fixtures and TestGenerateListenHandler asserting the enter captures
fd=args[0] (and never backlog at args[1]) and the exit stays UNCLASSIFIED.
No classification or generated-code changes; mage generate produces no diff.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'internal/statsengine/process.go')
0 files changed, 0 insertions, 0 deletions
