summaryrefslogtreecommitdiff
path: root/internal/flags/sampling_test.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-06-01 15:00:44 +0300
committerPaul Buetow <paul@buetow.org>2026-06-01 15:00:44 +0300
commit6a872804d93b822d530e9df93547f2fec0a8ea50 (patch)
tree4665b0aec25491cb094b71a099fedcdb15c03928 /internal/flags/sampling_test.go
parent55aa404fc93deeff27205b3cc9af407ab071be4b (diff)
test(integration): add Sched family tracing coverage
Add a self-targeted, non-disruptive sched-basic ioworkload scenario and a dedicated TestSchedBasic integration test. The scenario pins to one OS thread (LockOSThread) and exercises only safe Sched syscalls: sched_yield; sched_getaffinity then sched_setaffinity re-applying the identical mask (a no-op); and read-only sched_getscheduler, sched_getparam, sched_getattr, sched_get_priority_max/min, and sched_rr_get_interval. sched_setscheduler, sched_setattr, and sched_setparam are intentionally excluded. The test scopes -trace-syscalls to the sched_* family, guards on PID and comm, and asserts enter_ tracepoints fire (MinCount>=1) for sched_yield, sched_getaffinity, sched_getscheduler, and sched_getparam. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'internal/flags/sampling_test.go')
0 files changed, 0 insertions, 0 deletions