diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-18 14:14:33 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-18 14:14:33 +0300 |
| commit | 519cd996b5a7fede23b8b23f3c101d10b26111de (patch) | |
| tree | 93f14954325e936d459003f334b667d2afec93b6 /internal/generate/classify.go | |
| parent | d68e12c92f2aec9b59a849480e0788ab5d798b2a (diff) | |
k6: emit tracepoints for all syscall families
Diffstat (limited to 'internal/generate/classify.go')
| -rw-r--r-- | internal/generate/classify.go | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/internal/generate/classify.go b/internal/generate/classify.go index f3b9a44..b96ee0d 100644 --- a/internal/generate/classify.go +++ b/internal/generate/classify.go @@ -40,10 +40,6 @@ func ClassifyFormat(f *Format) ClassificationResult { return ClassificationResult{Kind: KindNone} } - if shouldIgnore(f.Name) { - return ClassificationResult{Kind: KindNone} - } - if r, ok := classifyNameOnly(f.Name); ok { return r } @@ -63,40 +59,6 @@ func ClassifyFormat(f *Format) ClassificationResult { return ClassificationResult{Kind: KindNone} } -func shouldIgnore(name string) bool { - prefixIgnores := []string{ - "sys_enter_mknod", - "sys_enter_execve", - "sys_enter_accept", - "sys_enter_listen", - "sys_enter_epoll", - } - for _, p := range prefixIgnores { - if strings.HasPrefix(name, p) { - return true - } - } - - if strings.HasPrefix(name, "sys_enter_") { - containsIgnores := []string{"recv", "send", "sock", "inotify"} - for _, sub := range containsIgnores { - if strings.Contains(name, sub) { - return true - } - } - } - - exactIgnores := map[string]bool{ - "sys_enter_bind": true, - "sys_enter_setns": true, - "sys_enter_shutdown": true, - "sys_enter_connect": true, - "sys_enter_fanotify_init": true, - "sys_enter_getpeername": true, - } - return exactIgnores[name] -} - // classifyNameOnly handles tracepoints classified by name alone, // independent of any field. func classifyNameOnly(name string) (ClassificationResult, bool) { |
