summaryrefslogtreecommitdiff
path: root/internal/tracepoints
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-21 11:39:18 +0300
committerPaul Buetow <paul@buetow.org>2026-05-21 11:39:18 +0300
commitc58aa139f5e7252aefb1bcacb5fa8b9ea8cdcdef (patch)
tree09ae5323e06a3a0b5ade451f1b8e4b9efccb4561 /internal/tracepoints
parenta0d6f222864301c11afd9c1d3306e6bfe8446d5d (diff)
n7 classify pidfd and misc tail syscalls
Diffstat (limited to 'internal/tracepoints')
-rw-r--r--internal/tracepoints/dimension_selector_test.go15
-rw-r--r--internal/tracepoints/generated_tracepoints.go122
2 files changed, 76 insertions, 61 deletions
diff --git a/internal/tracepoints/dimension_selector_test.go b/internal/tracepoints/dimension_selector_test.go
index cd7b0f8..da88954 100644
--- a/internal/tracepoints/dimension_selector_test.go
+++ b/internal/tracepoints/dimension_selector_test.go
@@ -48,6 +48,21 @@ func TestParseSelectorWithDimensionsKindOnly(t *testing.T) {
}
}
+func TestParseSelectorWithDimensionsPidfdKindOnly(t *testing.T) {
+ sel, err := ParseSelectorWithDimensions("", "", DimensionSelectorConfig{
+ TraceKinds: "pidfd",
+ })
+ if err != nil {
+ t.Fatalf("unexpected error: %v", err)
+ }
+ if !sel.ShouldAttach("sys_enter_pidfd_open") {
+ t.Fatal("expected pidfd_open to be attached for pidfd kind")
+ }
+ if sel.ShouldAttach("sys_enter_openat") {
+ t.Fatal("expected openat to be excluded when only pidfd kind is enabled")
+ }
+}
+
func TestParseSelectorWithDimensionsSyscallOnly(t *testing.T) {
sel, err := ParseSelectorWithDimensions("", "", DimensionSelectorConfig{
TraceSyscalls: "openat",
diff --git a/internal/tracepoints/generated_tracepoints.go b/internal/tracepoints/generated_tracepoints.go
index b9da5ca..060a779 100644
--- a/internal/tracepoints/generated_tracepoints.go
+++ b/internal/tracepoints/generated_tracepoints.go
@@ -1111,7 +1111,7 @@ var syscallFamilies = map[string]string{
var syscallKinds = map[string]string{
"accept": "accept",
"accept4": "accept",
- "access": "path",
+ "access": "pathname",
"acct": "null",
"add_key": "keyctl",
"adjtimex": "null",
@@ -1123,10 +1123,10 @@ var syscallKinds = map[string]string{
"cachestat": "fd",
"capget": "null",
"capset": "null",
- "chdir": "path",
- "chmod": "path",
- "chown": "path",
- "chroot": "path",
+ "chdir": "pathname",
+ "chmod": "pathname",
+ "chown": "pathname",
+ "chroot": "pathname",
"clock_adjtime": "null",
"clock_getres": "null",
"clock_gettime": "null",
@@ -1138,7 +1138,7 @@ var syscallKinds = map[string]string{
"close_range": "fd",
"connect": "fd",
"copy_file_range": "fd",
- "creat": "path",
+ "creat": "pathname",
"delete_module": "null",
"dup": "fd",
"dup2": "fd",
@@ -1155,23 +1155,23 @@ var syscallKinds = map[string]string{
"execveat": "exec",
"exit": "null",
"exit_group": "null",
- "faccessat": "path",
- "faccessat2": "path",
+ "faccessat": "pathname",
+ "faccessat2": "pathname",
"fadvise64": "fd",
"fallocate": "fd",
"fanotify_init": "null",
- "fanotify_mark": "path",
+ "fanotify_mark": "pathname",
"fchdir": "fd",
"fchmod": "fd",
- "fchmodat": "path",
- "fchmodat2": "path",
+ "fchmodat": "pathname",
+ "fchmodat2": "pathname",
"fchown": "fd",
- "fchownat": "path",
+ "fchownat": "pathname",
"fcntl": "fcntl",
"fdatasync": "fd",
"fgetxattr": "fd",
- "file_getattr": "path",
- "file_setattr": "path",
+ "file_getattr": "pathname",
+ "file_setattr": "pathname",
"finit_module": "fd",
"flistxattr": "fd",
"flock": "fd",
@@ -1181,7 +1181,7 @@ var syscallKinds = map[string]string{
"fsetxattr": "fd",
"fsmount": "eventfd",
"fsopen": "null",
- "fspick": "path",
+ "fspick": "pathname",
"fstatfs": "fd",
"fsync": "fd",
"ftruncate": "fd",
@@ -1190,7 +1190,7 @@ var syscallKinds = map[string]string{
"futex_wait": "null",
"futex_waitv": "null",
"futex_wake": "null",
- "futimesat": "path",
+ "futimesat": "pathname",
"get_mempolicy": "null",
"get_robust_list": "null",
"getcpu": "null",
@@ -1219,8 +1219,8 @@ var syscallKinds = map[string]string{
"gettid": "null",
"gettimeofday": "null",
"getuid": "null",
- "getxattr": "path",
- "getxattrat": "path",
+ "getxattr": "pathname",
+ "getxattrat": "pathname",
"init_module": "null",
"inotify_add_watch": "fd",
"inotify_init": "null",
@@ -1240,27 +1240,27 @@ var syscallKinds = map[string]string{
"iopl": "null",
"ioprio_get": "null",
"ioprio_set": "null",
- "kcmp": "null",
- "kexec_file_load": "null",
+ "kcmp": "two-fd",
+ "kexec_file_load": "fd",
"kexec_load": "null",
"keyctl": "keyctl",
"kill": "null",
"landlock_add_rule": "null",
"landlock_create_ruleset": "null",
"landlock_restrict_self": "null",
- "lchown": "path",
- "lgetxattr": "path",
+ "lchown": "pathname",
+ "lgetxattr": "pathname",
"link": "name",
"linkat": "name",
"listen": "fd",
"listmount": "null",
"listns": "null",
- "listxattr": "path",
- "listxattrat": "path",
- "llistxattr": "path",
- "lremovexattr": "path",
+ "listxattr": "pathname",
+ "listxattrat": "pathname",
+ "llistxattr": "pathname",
+ "lremovexattr": "pathname",
"lseek": "fd",
- "lsetxattr": "path",
+ "lsetxattr": "pathname",
"lsm_get_self_attr": "null",
"lsm_list_modules": "null",
"lsm_set_self_attr": "null",
@@ -1272,26 +1272,26 @@ var syscallKinds = map[string]string{
"memfd_secret": "eventfd",
"migrate_pages": "null",
"mincore": "null",
- "mkdir": "path",
- "mkdirat": "path",
- "mknod": "path",
- "mknodat": "path",
+ "mkdir": "pathname",
+ "mkdirat": "pathname",
+ "mknod": "pathname",
+ "mknodat": "pathname",
"mlock": "null",
"mlock2": "null",
"mlockall": "null",
"mmap": "fd",
"modify_ldt": "null",
- "mount": "path",
- "mount_setattr": "path",
+ "mount": "pathname",
+ "mount_setattr": "pathname",
"move_mount": "two-fd",
"move_pages": "null",
"mprotect": "null",
"mq_getsetattr": "fd",
"mq_notify": "fd",
- "mq_open": "open",
+ "mq_open": "mq-open",
"mq_timedreceive": "fd",
"mq_timedsend": "fd",
- "mq_unlink": "path",
+ "mq_unlink": "pathname",
"mremap": "mem",
"mseal": "null",
"msgctl": "null",
@@ -1302,12 +1302,12 @@ var syscallKinds = map[string]string{
"munlock": "null",
"munlockall": "null",
"munmap": "mem",
- "name_to_handle_at": "path",
+ "name_to_handle_at": "pathname",
"nanosleep": "sleep",
"newfstat": "fd",
- "newfstatat": "path",
- "newlstat": "path",
- "newstat": "path",
+ "newfstatat": "pathname",
+ "newlstat": "pathname",
+ "newstat": "pathname",
"newuname": "null",
"open": "open",
"open_by_handle_at": "open-by-handle-at",
@@ -1319,11 +1319,11 @@ var syscallKinds = map[string]string{
"perf_event_open": "perf-open",
"personality": "null",
"pidfd_getfd": "fd",
- "pidfd_open": "null",
- "pidfd_send_signal": "null",
+ "pidfd_open": "pidfd",
+ "pidfd_send_signal": "fd",
"pipe": "pipe",
"pipe2": "pipe",
- "pivot_root": "path",
+ "pivot_root": "pathname",
"pkey_alloc": "null",
"pkey_free": "null",
"pkey_mprotect": "null",
@@ -1343,26 +1343,26 @@ var syscallKinds = map[string]string{
"pwrite64": "fd",
"pwritev": "fd",
"pwritev2": "fd",
- "quotactl": "path",
+ "quotactl": "pathname",
"quotactl_fd": "fd",
"read": "fd",
"readahead": "fd",
- "readlink": "path",
- "readlinkat": "path",
+ "readlink": "pathname",
+ "readlinkat": "pathname",
"readv": "fd",
"reboot": "null",
"recvfrom": "fd",
"recvmmsg": "fd",
"recvmsg": "fd",
"remap_file_pages": "null",
- "removexattr": "path",
- "removexattrat": "path",
+ "removexattr": "pathname",
+ "removexattrat": "pathname",
"rename": "name",
"renameat": "name",
"renameat2": "name",
"request_key": "keyctl",
"restart_syscall": "null",
- "rmdir": "path",
+ "rmdir": "pathname",
"rseq": "null",
"rt_sigaction": "null",
"rt_sigpending": "null",
@@ -1417,8 +1417,8 @@ var syscallKinds = map[string]string{
"setsockopt": "fd",
"settimeofday": "null",
"setuid": "null",
- "setxattr": "path",
- "setxattrat": "path",
+ "setxattr": "pathname",
+ "setxattrat": "pathname",
"shmat": "null",
"shmctl": "null",
"shmdt": "null",
@@ -1430,11 +1430,11 @@ var syscallKinds = map[string]string{
"socket": "socket",
"socketpair": "socketpair",
"splice": "null",
- "statfs": "path",
+ "statfs": "pathname",
"statmount": "null",
- "statx": "path",
- "swapoff": "path",
- "swapon": "path",
+ "statx": "pathname",
+ "swapoff": "pathname",
+ "swapon": "pathname",
"symlink": "name",
"symlinkat": "name",
"sync": "null",
@@ -1456,19 +1456,19 @@ var syscallKinds = map[string]string{
"timerfd_settime": "null",
"times": "null",
"tkill": "null",
- "truncate": "path",
+ "truncate": "pathname",
"umask": "null",
- "umount": "path",
- "unlink": "path",
- "unlinkat": "path",
+ "umount": "pathname",
+ "unlink": "pathname",
+ "unlinkat": "pathname",
"unshare": "null",
"uprobe": "null",
"uretprobe": "null",
"userfaultfd": "eventfd",
"ustat": "null",
- "utime": "path",
- "utimensat": "path",
- "utimes": "path",
+ "utime": "pathname",
+ "utimensat": "pathname",
+ "utimes": "pathname",
"vfork": "null",
"vhangup": "null",
"vmsplice": "fd",