diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-21 18:01:00 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-21 18:01:00 +0300 |
| commit | 1a0f4086b0dff03eebcc22f1b5522cc1a9c25643 (patch) | |
| tree | 2028b3c7df984c66fce418f1f805a574ced97d5a /internal/generate/codegen_test.go | |
| parent | 956b0392dc1206dce49e6904210dfc9ae100d3e2 (diff) | |
m7 classify time and posix timer 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 eb3d82a..f469b6c 100644 --- a/internal/generate/codegen_test.go +++ b/internal/generate/codegen_test.go @@ -636,6 +636,7 @@ func TestGenerateAllEventTypes(t *testing.T) { {KindBpf, "ENTER_NULL_EVENT", "EXIT_NULL_EVENT"}, {KindFutex, "ENTER_NULL_EVENT", "EXIT_NULL_EVENT"}, {KindPrctl, "ENTER_NULL_EVENT", "EXIT_NULL_EVENT"}, + {KindTimerObj, "ENTER_NULL_EVENT", "EXIT_NULL_EVENT"}, } for _, tt := range tests { @@ -686,6 +687,7 @@ func TestEventStructNames(t *testing.T) { {KindBpf, "null_event"}, {KindFutex, "null_event"}, {KindPrctl, "null_event"}, + {KindTimerObj, "null_event"}, } for _, tt := range tests { @@ -704,7 +706,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, KindPrctl} + 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, KindTimerObj} for _, k := range accepted { if isEnterRejected(k) { t.Errorf("kind %d should NOT be enter-rejected", k) |
