diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-21 17:54:03 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-21 17:54:03 +0300 |
| commit | 61f0da12457ffc27b42565e79ac8c2ec9db0e4e7 (patch) | |
| tree | fe8bb802faf0cc7ab01abbd467a75046c2eff4bc /internal/tracepoints | |
| parent | 2e32f235adee23eea2349c83312bb58f0ee6c7da (diff) | |
h7 classify additional memory syscalls
Diffstat (limited to 'internal/tracepoints')
| -rw-r--r-- | internal/tracepoints/dimension_selector_test.go | 3 | ||||
| -rw-r--r-- | internal/tracepoints/generated_tracepoints.go | 8 |
2 files changed, 7 insertions, 4 deletions
diff --git a/internal/tracepoints/dimension_selector_test.go b/internal/tracepoints/dimension_selector_test.go index 81a49e5..a8b432a 100644 --- a/internal/tracepoints/dimension_selector_test.go +++ b/internal/tracepoints/dimension_selector_test.go @@ -88,6 +88,9 @@ func TestParseSelectorWithDimensionsMemKindIncludesMlock(t *testing.T) { if !sel.ShouldAttach("sys_enter_mlock") { t.Fatal("expected mlock to be attached for mem kind") } + if !sel.ShouldAttach("sys_enter_mprotect") { + t.Fatal("expected mprotect to be attached for mem kind") + } if sel.ShouldAttach("sys_enter_nanosleep") { t.Fatal("expected nanosleep to be excluded when only mem kind is enabled") } diff --git a/internal/tracepoints/generated_tracepoints.go b/internal/tracepoints/generated_tracepoints.go index 146b068..5b98b95 100644 --- a/internal/tracepoints/generated_tracepoints.go +++ b/internal/tracepoints/generated_tracepoints.go @@ -1119,7 +1119,7 @@ var syscallKinds = map[string]string{ "arch_prctl": "null", "bind": "fd", "bpf": "bpf", - "brk": "null", + "brk": "mem", "cachestat": "fd", "capget": "null", "capset": "null", @@ -1264,7 +1264,7 @@ var syscallKinds = map[string]string{ "lsm_get_self_attr": "null", "lsm_list_modules": "null", "lsm_set_self_attr": "null", - "madvise": "null", + "madvise": "mem", "map_shadow_stack": "mem", "mbind": "null", "membarrier": "null", @@ -1285,7 +1285,7 @@ var syscallKinds = map[string]string{ "mount_setattr": "pathname", "move_mount": "two-fd", "move_pages": "null", - "mprotect": "null", + "mprotect": "mem", "mq_getsetattr": "fd", "mq_notify": "fd", "mq_open": "mq-open", @@ -1326,7 +1326,7 @@ var syscallKinds = map[string]string{ "pivot_root": "pathname", "pkey_alloc": "null", "pkey_free": "null", - "pkey_mprotect": "null", + "pkey_mprotect": "mem", "poll": "poll", "ppoll": "poll", "prctl": "null", |
