mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-25 19:21:35 +01:00
Failed record replay attempt
This commit is contained in:
16
README.md
16
README.md
@@ -1,3 +1,19 @@
|
||||
TODO get working:
|
||||
|
||||
./runqemu -e 'init=/poweroff.out' -n -- -trace exec_tb,file=trace-rec -icount shift=7,rr=record,rrfile=replay.bin &&
|
||||
./runqemu -e 'init=/poweroff.out' -n -- -trace exec_tb,file=trace-rep -icount shift=7,rr=replay,rrfile=replay.bin
|
||||
|
||||
then kernel stops at:
|
||||
|
||||
[ 44.008396] NET: Registered protocol family 17
|
||||
|
||||
so networking is still bogged. But for what it is worth, all timestamps are the same, and the -traces must be too up do that point.
|
||||
|
||||
With `-net none`, it stops at:
|
||||
|
||||
[ 19.826052] ALSA device list:
|
||||
[ 19.826798] No soundcards found.
|
||||
|
||||
# Linux Kernel Module Cheat
|
||||
|
||||
Run one command, get a QEMU Buildroot BusyBox virtual machine built from source with several minimal Linux kernel 4.9 module development example tutorials with GDB and KGDB debug and minimal QEMU devices models. Tested in x86, ARM and MIPS guests, Ubuntu 14.04 - 17.04 hosts.
|
||||
|
||||
6
runqemu
6
runqemu
@@ -63,10 +63,12 @@ case "$arch" in
|
||||
fi
|
||||
cmd="$qemu_common \
|
||||
-M pc \
|
||||
-append 'root=/dev/vda nopat $extra_append' \
|
||||
-append 'root=/dev/sda nopat $extra_append' \
|
||||
-device edu \
|
||||
-device lkmc_pci_min \
|
||||
-drive file=${images_dir}/rootfs.ext2,if=virtio,format=raw \
|
||||
-drive file=${images_dir}/rootfs.ext2,if=none,format=raw,id=img-direct \
|
||||
-drive driver=blkreplay,if=none,image=img-direct,id=img-blkreplay \
|
||||
-device ide-hd,drive=img-blkreplay \
|
||||
-kernel ${images_dir}/bzImage \
|
||||
-net nic,model=virtio \
|
||||
$extra_flags
|
||||
|
||||
Reference in New Issue
Block a user