Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Single Scenario

Running a specific test

cargo ktstr test --kernel ../linux -- -E 'test(sched_basic_proportional)'

Running with verbose output

RUST_BACKTRACE=1 cargo ktstr test --kernel ../linux -- -E 'test(sched_basic_proportional)'

Investigating failures

Run one test with verbose output to see scheduler logs and kernel console:

RUST_BACKTRACE=1 cargo ktstr test --kernel ../linux -- -E 'test(cover_cgroup_cpuset_cross_llc_race)'

VM topology

Each #[ktstr_test] declares its topology via macro attributes:

#[ktstr_test(llcs = 2, cores = 4, threads = 2)]

The test framework boots a VM with the specified topology automatically.

See Investigate a Crash for interpreting failure output and Troubleshooting for common error messages.