diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-29 17:07:01 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-29 17:07:01 +0300 |
| commit | 0961f9df1f51e8f6d7f31cef9234728bcccd188d (patch) | |
| tree | 8d899df27871be6121b4b5fe2d61cc6944e942fc /docs | |
| parent | fd8632e70dd2ec7dc6b0b03f469e3281114d5048 (diff) | |
test(classify): lock in sched_getattr pid-not-fd classification
Audit of sched_getattr confirmed it is correctly classified as
FamilySched + KindNull, consistent with its siblings (sched_setattr,
sched_getparam, sched_getscheduler). The syscall's first argument is a
pid_t (a process/thread id), not a file descriptor, and the kernel
tracepoint field is named "pid" rather than "fd", so the fd heuristic
never applies; the name-only classification table also short-circuits
before any field inspection.
Add TestClassifySchedGetattrPidNotFd as a regression guard that pins
KindNull and FamilySched using the real kernel field layout, explicitly
asserting the pid arg is never treated as an fd, plus sibling
consistency. No behavior or generated-artifact changes (mage generate
produces no diff).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
