Files
linux-kernel-module-cheat/rootfs_overlay/kgdb-mod.sh

10 lines
122 B
Bash
Executable File

#!/bin/sh
insmod fops.ko
cd /sys/kernel/debug/lkmc_fops
i=0
while true; do
printf "$i" >f
i=$(($i+1))
done &
/kgdb.sh