perf: Make it easy to run crosvm inside a debugger by giving a command file

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Rohan Garg <rohan.garg@collabora.com>
macos/master
Gert Wollny 4 years ago
parent 24ed01753d
commit da89b10371
  1. 5
      perf-testing/Docker/run.sh

@ -196,6 +196,10 @@ if [ "x$debug" = "xyes" ]; then
export EGL_DEBUG=debug export EGL_DEBUG=debug
fi fi
if [ -e /wd/crosvm-debug.cmd ]; then
gdb -x /wd/crosvm-debug.cmd
else
crosvm run \ crosvm run \
--gpu gles=false\ --gpu gles=false\
-m 4096 \ -m 4096 \
@ -209,6 +213,7 @@ crosvm run \
--host_ip 192.168.200.1 --netmask 255.255.255.0 --mac AA:BB:CC:00:00:12 \ --host_ip 192.168.200.1 --netmask 255.255.255.0 --mac AA:BB:CC:00:00:12 \
-p "root=/dev/ram0 rdinit=/init.sh ip=192.168.200.2::192.168.200.1:255.255.255.0:crosvm:eth0 nohz=off clocksource=kvm-clock" \ -p "root=/dev/ram0 rdinit=/init.sh ip=192.168.200.2::192.168.200.1:255.255.255.0:crosvm:eth0 nohz=off clocksource=kvm-clock" \
/vmlinux /vmlinux
fi
rm -f /traces-db/current_trace rm -f /traces-db/current_trace
rm -f /traces-db/command rm -f /traces-db/command

Loading…
Cancel
Save