Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp877094pxb; Thu, 5 Nov 2020 15:49:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzRdKr/B1zeaKSxCurM+0bEB5tGRimgOijZP6r/HDQaMQnb/Cl/DTqxw1TAM/5jhJA9ulBf X-Received: by 2002:aa7:ccd2:: with SMTP id y18mr5383196edt.11.1604620148635; Thu, 05 Nov 2020 15:49:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604620148; cv=none; d=google.com; s=arc-20160816; b=Q6rCNRuffe97sY1A9vOPRTSd3KoqyIr64OETUwJd+D6q0o22XqrSzVqnqCm8Hw/rTk Vq9+aKxooyHW1fmLnTWg/9hA7PKl3ttJmOzDngJtThWEIgN38Si6PKXQAE4aplggLhQF nRy997fxXebvsMD+JGxSdV1gCA6fuu+VUdKrGzP/4vDnCRvkB1qSaGnO7JfGDaADUeQf 69DtdebQM5SlnJqGNBRYiF2G7evHoqragD/hun4bRx1zsHiVQ8i2ebF5jHQHHONah5Qh 9rLz/IobHG60Zfgl/Mg5stww31Sb+GtkInwbfpVSUtvyEJBaUYxkD5zZ3cYmtPK5143e oC5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=QGCZLIO9NnnbFAdyurEQIi2IJChPsXjCBEVStWjeNVg=; b=M1h3+a4FawcaQOxHQ9egXRDnxhUl0JYIU02XFtqUtde9Y+7UryUPUDGVA08CW0U+dP 8o4qrFn82bo9Qm37IDVGODOPF/oLenpBfHCY31GTdS9UxUaJSoNoy7h9DXch/snn4c90 MlWi4Se9Pe/k31KltNGrvrlVc6m5/w19IQWvwqJx/4J6VPZpZ8VR5YdJ3Lm2+/LkjmBy F7eT88+EdYMAMsZPDWXx+S+T8HppeB0btCnVb8zghAOlKRw/LEMfllpHKIqB2ySG3HVY LM4+E6NNQAt2Gw/7m4JzHURZkO5srA/6LHmKvdFhYeAJUr1LyNVHtk4NwnkVHZQTgZgk udrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RW4jgD4U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q1si2412846ejf.509.2020.11.05.15.48.45; Thu, 05 Nov 2020 15:49:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=RW4jgD4U; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732577AbgKEXrX (ORCPT + 99 others); Thu, 5 Nov 2020 18:47:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:45896 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732396AbgKEXrX (ORCPT ); Thu, 5 Nov 2020 18:47:23 -0500 Received: from paulmck-ThinkPad-P72.home (50-39-104-11.bvtn.or.frontiernet.net [50.39.104.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4F88A20786; Thu, 5 Nov 2020 23:47:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604620042; bh=/lJf2+3oQzzr/BP2vTNimxkzBn9BBeAJK3y0XemQ29k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RW4jgD4UYCXz3n+kANrZWiAx9wjAKa3hAhsyxVUb4t+cVzBNzjYL7pKPdolQoeWPl jBJt3Lz3nxXVaqepKPM7GQNrQ8hKVKcBGzWMG+N3twasG2ifFFJgdqdM5fa+wGYGp3 o7QKbfS09qqc4Xc6jK9fx920OW4b1vjGb+SKAPsE= From: paulmck@kernel.org To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, mingo@kernel.org, jiangshanlai@gmail.com, akpm@linux-foundation.org, mathieu.desnoyers@efficios.com, josh@joshtriplett.org, tglx@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, dhowells@redhat.com, edumazet@google.com, fweisbec@gmail.com, oleg@redhat.com, joel@joelfernandes.org, "Paul E. McKenney" Subject: [PATCH tip/core/rcu 02/28] torture: Don't kill gdb sessions Date: Thu, 5 Nov 2020 15:46:53 -0800 Message-Id: <20201105234719.23307-2-paulmck@kernel.org> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20201105234658.GA23142@paulmck-ThinkPad-P72> References: <20201105234658.GA23142@paulmck-ThinkPad-P72> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: "Paul E. McKenney" The rcutorture scripting will do a "kill -9" on any guest OS that exceeds its --duration by more than a few minutes, which is very valuable when bugs result in hangs. However, this is a problem when the "hang" was due to a --gdb debugging session. This commit therefore refrains from killing the guest OS when a debugging session is in progress. This means that the user must manually kill the kvm.sh process group if a hang really does occur. Signed-off-by: Paul E. McKenney --- tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh b/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh index 6dc2b49..d04966a 100755 --- a/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh +++ b/tools/testing/selftests/rcutorture/bin/kvm-test-1-run.sh @@ -206,7 +206,10 @@ do kruntime=`gawk 'BEGIN { print systime() - '"$kstarttime"' }' < /dev/null` if test -z "$qemu_pid" || kill -0 "$qemu_pid" > /dev/null 2>&1 then - if test $kruntime -ge $seconds -o -f "$TORTURE_STOPFILE" + if test -n "$TORTURE_KCONFIG_GDB_ARG" + then + : + elif test $kruntime -ge $seconds || test -f "$TORTURE_STOPFILE" then break; fi -- 2.9.5