mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 04:01:36 +01:00
rr test
This commit is contained in:
24
rec
Executable file
24
rec
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/usr/bin/env bash
|
||||
cmd="\
|
||||
time \
|
||||
./out/x86_64/buildroot/host/usr/bin/qemu-system-x86_64 \
|
||||
-M pc \
|
||||
-append 'root=/dev/sda console=ttyS0 nokaslr printk.time=y - lkmc_eval=\"/rand_check.out;/sbin/ifup -a;wget -S google.com;/poweroff.out;\"' \
|
||||
-kernel 'out/x86_64/buildroot/images/bzImage' \
|
||||
-nographic \
|
||||
\
|
||||
-drive file=out/x86_64/buildroot/images/rootfs.ext2.qcow2,if=none,id=img-direct,format=qcow2 \
|
||||
-drive driver=blkreplay,if=none,image=img-direct,id=img-blkreplay \
|
||||
-device ide-hd,drive=img-blkreplay \
|
||||
\
|
||||
-netdev user,id=net1 \
|
||||
-device rtl8139,netdev=net1 \
|
||||
-object filter-replay,id=replay,netdev=net1 \
|
||||
"
|
||||
echo "$cmd"
|
||||
#eval "$cmd -icount 'shift=7,rr=record,rrfile=replay.bin'"
|
||||
# Different than previous.
|
||||
eval "$cmd -icount 'shift=7,rr=record,rrfile=replay.bin'"
|
||||
# Same as previous.
|
||||
eval "$cmd -icount 'shift=7,rr=replay,rrfile=replay.bin'"
|
||||
#eval "$cmd -icount 'shift=7,rr=replay,rrfile=replay.bin' -S -s"
|
||||
Reference in New Issue
Block a user