1# 2# Copyright (c) 2025 Mark Johnston <markj@FreeBSD.org> 3# 4# SPDX-License-Identifier: BSD-2-Clause 5# 6 7set -e 8 9n=$(sysctl -n hw.ncpu) 10if [ $n -lt 2 ]; then 11 echo "This test requires at least 2 CPUs" 12 exit 1 13fi 14 15# Set up some things expected by selftest.py. 16kldload -n pf siftr 17pfctl -e || true 18jail -c name=gdbselftest vnet persist 19 20echo "I'm about to panic your system, ctrl-C now if that's not what you want." 21sleep 10 22sysctl debug.debugger_on_panic=0 23sysctl debug.kdb.panic=1 24