From da89b10371cb55f85dc7f7853c5fd3320df83454 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Tue, 16 Feb 2021 11:05:39 +0100 Subject: [PATCH] perf: Make it easy to run crosvm inside a debugger by giving a command file Signed-off-by: Gert Wollny Reviewed-by: Rohan Garg --- perf-testing/Docker/run.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/perf-testing/Docker/run.sh b/perf-testing/Docker/run.sh index 9b68a00..4cf1b01 100755 --- a/perf-testing/Docker/run.sh +++ b/perf-testing/Docker/run.sh @@ -196,7 +196,11 @@ if [ "x$debug" = "xyes" ]; then export EGL_DEBUG=debug fi -crosvm run \ + +if [ -e /wd/crosvm-debug.cmd ]; then + gdb -x /wd/crosvm-debug.cmd +else + crosvm run \ --gpu gles=false\ -m 4096 \ -c 4 \ @@ -209,6 +213,7 @@ crosvm run \ --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" \ /vmlinux +fi rm -f /traces-db/current_trace rm -f /traces-db/command