Files
reims-vgpu/scripts/internal/lane-gate
Anees Iqbal 3fa02f6347 🔇 Write each kind of warning once, and count the rest
A warn or error line says a fallback, a refusal or a failure, and the
library wrote one at every event that met its cause: a refused pipeline at
each create, a broken ring at each post, a swapchain's failure at each
frame, a CUDA call's at each frame's drop. Each degradation is to be said
once per boot and then counted.

The library's logger now writes the first line of each kind at its level
and each later one at debug, counting it. A kind is the call site and,
where the site reports more than one cause, the class of the cause it
names as a `kind` key-value (`kind:% = error`): its text up to its first
digit, quote or `;`, so a refusal's id, a raise's selector, a Vulkan
result or a CUDA error tells kinds apart and a size or an address does
not. A site with one cause names none. An info line that names a kind is
said once per kind too. The first 256 kinds are told apart, the rest
counted together. `write_repeats` writes the count at info: "lines
repeated since the last count: <n> more of <file>:<line>[ [<kind>]]
(<target>: <the first line>); ...". The `log` crate's `kv` feature
carries the key-value.

The display sink's own first-refusal flag goes: the logger keeps one per
kind of refusal. msi-boot.sh counts ICB_SLOTS refusals from the first
lines and the logger's counts, as the later ones are debug lines now.
2026-11-11 03:44:56 -08:00
..