diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-13 14:37:47 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-13 14:37:47 +0300 |
| commit | de6b9c4741dea87ce66e0309bac580030490dc30 (patch) | |
| tree | e535c606fb9ec90cacb3790544fe50038f7850e1 /internal/statsengine | |
| parent | 306b9eb1c1054992506dd36fc9f1b64e11276598 (diff) | |
refactor(generate): replace classifySyscall switches with kindRegistry (OCP)
Introduce kindregistry.go with a kindMeta struct (structName, enterAccepted)
and a kindRegistry map keyed by TracepointKind. Replace the switch in
isEnterRejected (codegen.go) and the switch in eventStructName (bpfhandler.go)
with lookupKind registry lookups. Adding a new TracepointKind now only
requires a single registry entry — no switch statements need to be touched.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/statsengine')
0 files changed, 0 insertions, 0 deletions
