From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Jones Subject: Re: [kvm-unit-tests PATCH 7/7] arm/run: add --debug option Date: Mon, 6 Jul 2015 15:14:06 +0200 Message-ID: <20150706131406.GH17217@hawk.localdomain> References: <1435931327-8073-1-git-send-email-alex.bennee@linaro.org> <1435931327-8073-8-git-send-email-alex.bennee@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: kvm@vger.kernel.org To: Alex =?iso-8859-1?Q?Benn=E9e?= Return-path: Received: from mx1.redhat.com ([209.132.183.28]:45196 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755363AbbGFNOK (ORCPT ); Mon, 6 Jul 2015 09:14:10 -0400 Content-Disposition: inline In-Reply-To: <1435931327-8073-8-git-send-email-alex.bennee@linaro.org> Sender: kvm-owner@vger.kernel.org List-ID: On Fri, Jul 03, 2015 at 02:48:47PM +0100, Alex Benn=E9e wrote: > This allows you to pass debug options through to the QEMU command lin= e. > e.g.: >=20 > ./arm/run --debug "-name debug-threads=3Don" -- arm/vos-spinlock-te= st.flat -smp 4 doesn't =2E/arm/run arm/vos-spinlock-test.flat -smp 4 -name debug-threads=3Don do the same thing? >=20 > Signed-off-by: Alex Benn=E9e > --- > arm/run | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) >=20 > 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" ]; = then > 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 >=20 > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html