pub const KTSTR_NO_PERF_MODE_ENV: &str = "KTSTR_NO_PERF_MODE";Expand description
Name of the environment variable that forces ktstr to skip the
perf_event_open access check + the
perf_event_paranoid-relaxation gate. Read at scenario-engine
startup (crate::test_support::runtime) and by the
cargo ktstr shell / verifier dispatch sites that disable
perf collection when the operator passes --no-perf-mode.
Empty = unset per the default contract — empty value is
treated as not set. The canonical reader at
crate::test_support::runtime::no_perf_mode_active uses
.map(|v| !v.is_empty()).unwrap_or(false) after a prior
regression where CI shells exporting KTSTR_NO_PERF_MODE=
silently disabled perf mode for every performance_mode test.
Any non-empty value ("1", "yes", "0", "true") enables
no-perf-mode. All readers (shell-mode VM builder in
lib.rs, verifier dispatch in verifier.rs, dispatch
gauntlet + eval entry in test_support/dispatch.rs and
test_support/eval/mod.rs)
route through the canonical helper so the empty-string
contract holds uniformly.