Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5915549rwp; Mon, 17 Jul 2023 11:28:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlG4wWJVI6tNjM9Iy+g30b50hwXmgDh50sOKocncVHHg6hfCRE/UxfO+Y/DGLHki4lmECpIC X-Received: by 2002:aa7:c40a:0:b0:51e:444a:881f with SMTP id j10-20020aa7c40a000000b0051e444a881fmr14762034edq.7.1689618487538; Mon, 17 Jul 2023 11:28:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689618487; cv=none; d=google.com; s=arc-20160816; b=CiOWJCH6RMy/uPHCxwIwbnxpMnCF9D9rqbE1MxDyWa2O7sRvSVCNVpxOA8h4uqJMig ++An2IukkbtidW880xuZDvAxApZfbyeAb4MyZPb1fEcsPJnu2Iq5XH0gobkrfYr1+Drt sa37xya/AOanR69MbdjwOWsY6KfgF6uXZ06iyzAVyHO828lJCstDMu9PkpZ9gX3WC7hI jUlty/smCXYlNM2/TbD4BMjJEhwDiUZyUBOcOFjMnLWxbE6eVBgwb9ITjg7O11GL9G1M E3IQAH5sUcMBXHmoTMiELIXhZT7p3v9Cxpk4rpvQbVjic5jl0TAR1P8Rh7cvg1QAooWb bz9A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9X6/zBwH6bLrwoTbJpAd0orwvTd8lFRT0MOqwtGf/Z0=; fh=Ag0RbRk3LxdpQ9OdMLAf8hbnmFe6FOAHRGAvgVTwgEc=; b=vdDB9/xfcBKqqchq0fIHAWo+/TGsIVAHdIe8DbnFtjUVz+Ki/IzmxHt/IPL2XxR4PF /HXLSlIHvaxUTfSKSSDSeFO2Ky7HOZ8+OV1uXPfuA5Ag5wX+gkhlAtgkchQz6y+2tKeB 1xQzG8NX1dZEHp+2t+JeQpjr7A4N9ufokHRVgqSnfNHIRYLBkvmY2X1pESTw8TaYXNin ipm2CVY2PpCFGrkhZ/dniFpDSYn+DkJhcFCEU568fmzttD5SQUYxNOLJKL0hhi1IsyeI kcuTvUwf1eUkikixWRezo50aV0GhgzoScqUBIIwJJC3CQmzKfEmDTNahMUHbIRZMdyLe 5tVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ntGTK4Mr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z22-20020aa7cf96000000b0051e0d3bb44fsi14890875edx.21.2023.07.17.11.27.43; Mon, 17 Jul 2023 11:28:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ntGTK4Mr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231490AbjGQSUs (ORCPT + 99 others); Mon, 17 Jul 2023 14:20:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231338AbjGQSUr (ORCPT ); Mon, 17 Jul 2023 14:20:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E3D9C10D8; Mon, 17 Jul 2023 11:20:44 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 75742611D4; Mon, 17 Jul 2023 18:20:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D529AC433C7; Mon, 17 Jul 2023 18:20:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689618043; bh=9N1zqkCJH9SNDZWV9ht6RHlfnWm8AY70Ut+G1/Medxg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ntGTK4Mrf1jtLI7Q9eH7uIuHF9R9DVeH/IdbtxBupgd7RiHAmlQ1jYMpPva1d3IEV 57vbKFGHgjGrvxsAyK4Bw/oRn7eIIqgaVpxYEGaLXn12ejGNU8Tp3CP71HdhNt7ROK BQyOKUdZDEkmVHZateVDNVohqzi62Z06/KJVXr+9k2TuPFgFg5Q6WjlkcMrOEgVFBk shLGvrzTfS03ghw9qtZ2d/+JfFGmhiu1uKy2UzoAmAujAHDKUW+W++ixJsvBtF7Zfn lnqsO0Jz8Ik8kAxu4Xf3BTLdz8ZT4kMWgyYfmQievGiwiKTq8QkSBvaJVSdX26SeI1 duixVXVgLvpdg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 8C099CE03F1; Mon, 17 Jul 2023 11:20:43 -0700 (PDT) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@meta.com, rostedt@goodmis.org, "Paul E. McKenney" Subject: [PATCH rcu 1/9] rcutorture: Dump grace-period state upon rtort_pipe_count incidents Date: Mon, 17 Jul 2023 11:20:34 -0700 Message-Id: <20230717182042.1098651-1-paulmck@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The rtort_pipe_count WARN() indicates that grace periods were unable to invoke all callbacks during a stutter_wait() interval. But it is sometimes helpful to have a bit more information as to why. This commit therefore invokes show_rcu_gp_kthreads() immediately before that WARN() in order to dump out some relevant information. Signed-off-by: Paul E. McKenney --- kernel/rcu/rcutorture.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index 147551c23baf..d291a1438c30 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c @@ -1581,6 +1581,7 @@ rcu_torture_writer(void *arg) rcu_access_pointer(rcu_torture_current) != &rcu_tortures[i]) { tracing_off(); + show_rcu_gp_kthreads(); WARN(1, "%s: rtort_pipe_count: %d\n", __func__, rcu_tortures[i].rtort_pipe_count); rcu_ftrace_dump(DUMP_ALL); } -- 2.40.1