pub fn parse_kmsg_window(text: &str) -> Vec<ScxExitEvent>Expand description
Parse a window of /dev/kmsg (or dmesg text) and return every
scx exit event found in it.
Looks for ANCHOR_PREFIX anchor lines, then collects
follow-on lines (typically <N> or [ts] prefixed kernel print
continuation) until the next non-stack-looking line or the next
anchor. Stack-trace %pS tokens are extracted from the
collected lines via extract_stack_symbols.
Multiple events in one window produce multiple records — the
kernel can emit several disable events back-to-back (especially
when a scheduler load+disable cycles rapidly during a test).
Returns an empty vec when the window contains no anchor — that is “no scx events in this slice”, NOT an error.