summaryrefslogtreecommitdiff
path: root/cmd/ioworkload/scenarios.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-06-01 10:35:18 +0300
committerPaul Buetow <paul@buetow.org>2026-06-01 10:35:18 +0300
commitb7a63e9964a865441b4e0791a19b5a7bbfa2eff4 (patch)
treee09353be8156e2c4e0877d69476dc52fad2adea3 /cmd/ioworkload/scenarios.go
parent8549884d1d957821b75dfbd5a4ff746667095f17 (diff)
test(integration): add SysV shm tracing coverage
The SysV shared-memory family (shmget/shmat/shmdt/shmctl) had no end-to-end integration coverage. Add an ioworkload `sysv-shm-basic` scenario that, without privileges, runs shmget(IPC_PRIVATE) -> shmat -> write into the mapped segment -> shmdt -> shmctl(IPC_RMID), always issuing IPC_RMID (via defer) so no kernel segment leaks. Add TestSysVShmBasic asserting enter_shmget/enter_shmat/enter_shmdt/ enter_shmctl are each traced with a positive (paired enter/exit) duration. msg/sem coverage is scoped out and tracked as a follow-up task (7i0). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'cmd/ioworkload/scenarios.go')
-rw-r--r--cmd/ioworkload/scenarios.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/ioworkload/scenarios.go b/cmd/ioworkload/scenarios.go
index 597d0e8..ae003b6 100644
--- a/cmd/ioworkload/scenarios.go
+++ b/cmd/ioworkload/scenarios.go
@@ -43,6 +43,7 @@ var scenarios = map[string]func() error{
"eventfd2-basic": eventfd2Basic,
"fd-from-air-eventfd-users": fdFromAirEventfdUsers,
"mq-posix-basic": mqPosixBasic,
+ "sysv-shm-basic": sysvShmBasic,
"mountfs-management": mountfsManagement,
"polling-epoll": pollingEpoll,
"sleep-syscalls": sleepSyscalls,