diff options
| author | Paul Buetow <paul@buetow.org> | 2026-06-02 21:32:47 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-06-02 21:32:47 +0300 |
| commit | 4f44de8ee0ec51ee5c934048405030e362cc197f (patch) | |
| tree | 3babca11e491761484238782944cd65933dede97 /docs/syscall-tracing-plan.md | |
| parent | 8e8cad2f1a085366eff89f6299d49637cb4d425f (diff) | |
test(integration): add cachestat end-to-end coverage
cachestat(2) had no integration coverage. Add a readwrite-cachestat
ioworkload scenario and TestReadwriteCachestat mirroring the readahead
precedent: open a temp file, write data to populate the page cache, then
issue cachestat via a raw syscall (no glibc/unix wrapper) with a whole-file
cachestat_range and zeroed cachestat output buffer, flags=0. ENOSYS on
kernels < 6.5 is tolerated for portability.
The test asserts enter_cachestat is captured with the fd-resolved file
path, that the UNCLASSIFIED return attributes zero bytes, and that the
syscall duration is positive. golang.org/x/sys is promoted to a direct
dependency. Verified PASS under sudo on kernel 7.0.9.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'docs/syscall-tracing-plan.md')
0 files changed, 0 insertions, 0 deletions
