collapse_verifier_region

Function collapse_verifier_region 

Source
pub fn collapse_verifier_region(s: &str) -> String
Expand description

Return s with the libbpf verifier-log region (between the -- BEGIN/END PROG LOAD LOG -- markers) replaced by collapse_cycles of that region — collapsed IN PLACE, with every byte OUTSIDE the region (the surrounding scheduler output, the BEGIN and END marker lines, any mid-line-END partial prefix) preserved exactly. Input WITHOUT the marker pair is returned unchanged.

This replaces the prior extract-and-drop rendering: the scheduler’s full output is preserved and only the (potentially huge, cyclic) verifier trace is compressed, rather than discarding everything outside the trace.