diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-21 17:59:33 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-21 17:59:33 +0300 |
| commit | 956b0392dc1206dce49e6904210dfc9ae100d3e2 (patch) | |
| tree | 5c5fb16de87b4cc7c857d6109ebdda0c6db6b404 /internal/generate/codegen_test.go | |
| parent | 3e00ee8e994147c2dce70bc785fb6fb70f3ecd41 (diff) | |
k7 classify process control and prctl syscalls
Diffstat (limited to 'internal/generate/codegen_test.go')
| -rw-r--r-- | internal/generate/codegen_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/generate/codegen_test.go b/internal/generate/codegen_test.go index cf75324..eb3d82a 100644 --- a/internal/generate/codegen_test.go +++ b/internal/generate/codegen_test.go @@ -635,6 +635,7 @@ func TestGenerateAllEventTypes(t *testing.T) { {KindProc, "ENTER_NULL_EVENT", "EXIT_NULL_EVENT"}, {KindBpf, "ENTER_NULL_EVENT", "EXIT_NULL_EVENT"}, {KindFutex, "ENTER_NULL_EVENT", "EXIT_NULL_EVENT"}, + {KindPrctl, "ENTER_NULL_EVENT", "EXIT_NULL_EVENT"}, } for _, tt := range tests { @@ -684,6 +685,7 @@ func TestEventStructNames(t *testing.T) { {KindProc, "null_event"}, {KindBpf, "null_event"}, {KindFutex, "null_event"}, + {KindPrctl, "null_event"}, } for _, tt := range tests { @@ -702,7 +704,7 @@ func TestEnterReject(t *testing.T) { t.Error("KindNone should be enter-rejected") } - accepted := []TracepointKind{KindFd, KindOpen, KindMqOpen, KindExec, KindPathname, KindName, KindFcntl, KindNull, KindDup3, KindOpenByHandleAt, KindSocket, KindSocketpair, KindAccept, KindPipe, KindEventfd, KindPidfd, KindEpollCtl, KindTwoFd, KindPoll, KindMem, KindSleep, KindKeyctl, KindPtrace, KindPerfOpen, KindSeccomp, KindModule, KindSysVId, KindSysVOp, KindProc, KindBpf, KindFutex} + accepted := []TracepointKind{KindFd, KindOpen, KindMqOpen, KindExec, KindPathname, KindName, KindFcntl, KindNull, KindDup3, KindOpenByHandleAt, KindSocket, KindSocketpair, KindAccept, KindPipe, KindEventfd, KindPidfd, KindEpollCtl, KindTwoFd, KindPoll, KindMem, KindSleep, KindKeyctl, KindPtrace, KindPerfOpen, KindSeccomp, KindModule, KindSysVId, KindSysVOp, KindProc, KindBpf, KindFutex, KindPrctl} for _, k := range accepted { if isEnterRejected(k) { t.Errorf("kind %d should NOT be enter-rejected", k) |
