Failed record replay attempt

This commit is contained in:
Ciro Santilli
2017-10-09 14:48:05 +01:00
parent e6719fb4e8
commit 8824ca3bca
2 changed files with 20 additions and 2 deletions

View File

@@ -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.

View File

@@ -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