DF-2263 / run_2263a.sh
#!/bin/sh # run_2263a.sh -- DF-2263 scenario A: double biodone of a physio bio. # EXPECTED on the UNPATCHED kernel: KASSERT panic "bpdone: bp %p # already done!" (or "not busy") -- guest halts in the debugger; the # panic is captured from the serial console afterwards: # dfbsd-qemu/vm.sh log 200 > panic.txt # EXPECTED on the FIXED kernel: "DFH2263A: SUMMARY completions per # bio: 1 1 1 ... queue_count=0", guest stays up. set -e ROOT=/home/maxx/dfbsd/dfbsd VM="$ROOT/dfbsd-qemu/vm.sh" cd "$(dirname "$0")" timeout 60 $VM run_root 'sysctl debug.df226x.t2263a=1' 2>&1 | tee run_2263a.log || true sleep 5 $VM log 250 > serial_2263a.txt || true tail -60 serial_2263a.txt |