From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [kvm-unit-tests PATCH 7/7] arm/run: add --debug option Date: Fri, 3 Jul 2015 14:48:47 +0100 Message-ID: <1435931327-8073-8-git-send-email-alex.bennee@linaro.org> References: <1435931327-8073-1-git-send-email-alex.bennee@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: drjones@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= To: kvm@vger.kernel.org Return-path: Received: from mail-wi0-f174.google.com ([209.85.212.174]:37662 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755139AbbGCNsz (ORCPT ); Fri, 3 Jul 2015 09:48:55 -0400 Received: by wicgi11 with SMTP id gi11so100925199wic.0 for ; Fri, 03 Jul 2015 06:48:54 -0700 (PDT) In-Reply-To: <1435931327-8073-1-git-send-email-alex.bennee@linaro.org> Sender: kvm-owner@vger.kernel.org List-ID: This allows you to pass debug options through to the QEMU command line. e.g.: ./arm/run --debug "-name debug-threads=3Don" -- arm/vos-spinlock-test= =2Eflat -smp 4 Signed-off-by: Alex Benn=C3=A9e --- arm/run | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arm/run b/arm/run index 43d7508..871e35e 100755 --- a/arm/run +++ b/arm/run @@ -18,10 +18,15 @@ if [ -c /dev/kvm ]; then fi fi =20 +debugopts=3D"" while :; do case $1 in --force-tcg) usingkvm=3D0 + ;; + --debug) + shift + debugopts=3D$1 shift ;; --) @@ -78,7 +83,7 @@ if [ $usingkvm =3D 1 ] && [ "$ARCH" =3D "arm64" ]; th= en fi =20 command=3D"$qemu $M -cpu $processor $chr_testdev" -command+=3D" -display none -serial stdio -kernel" +command+=3D" -display none -serial stdio $debugopts -kernel" =20 echo $command "$@" $command "$@" --=20 2.4.5