Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3311638iog; Mon, 20 Jun 2022 16:57:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uya/IfD+3aZH7+9OrIwWxk/bWSZ3aWh/4TPnXwZP2DTAzXuSWV9vcS1f1KkvyOicL8q/I1 X-Received: by 2002:aa7:c50c:0:b0:435:66b7:3dad with SMTP id o12-20020aa7c50c000000b0043566b73dadmr21462910edq.397.1655769475768; Mon, 20 Jun 2022 16:57:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655769475; cv=none; d=google.com; s=arc-20160816; b=BCk4K57j8TMRi9PFirMbBa49AuyE/jaIQZA5KyVOcnFtLsAnlkMzNLXBB6eE5Gj6fQ lO98KjRahcHMefdqlSpcY/AcsE//BA8pOyTPiAYEm9Ea5/zo4d4wz54HJ6E8tgonkq4o 3iTJQQ6nUaQUfLoQo64J8A8OnfC5KXvGVuDV9Cvpqp+XCZF0BJ+eKgb1RgQG9sQ9hboe pEQghBnpNAe/kujEeoNVOU+MwtNaX7mAaRzno9pHybVbMk+pO7GKAS09zt9B4csKXgUd DQ6DF1XQjsRT11UC8oF2Df4uSvDNt1lrgvtG4gDMBo23d2QOKHyWtQ66NnV4mXu8yNoK gWZA== 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=ZhZvHPr6mfvLT4r/4d71wPdVV0zscB8DXXegPI9V5ig=; b=ncz2DH84gdNM/8WAk9rrC7EMBgT5KZWFLmIUa81rqHIA8lpldatRfGQGQLSlpThxPK NDbZo5jHMklpbdZfcJc86Hih++lzqB/7mVy5DgOp0ypoB4dP0hDIalyf4Ek7AVzO3eIX CgMAYFR7Ts5Ls9sX2kUoPP7L2vv9py/i6Ab56NKrgIqzAMAp+d/rKATk+KsTpmtXOXS7 0rdf9SdLOykWROOJ3C3hL2VnZ6N5qC5UsNqIGNkDE7SNsuVPxTV0sWjwZJzdVtU3MAUJ I5WylI9YhXTj8i3TNfcQNqMCuiCbAkb6fPG+KnSMDXW3HmqTvTZICu99F506y2DZb5ms ZUPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=orWnx4ae; 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 ey8-20020a0564022a0800b0042e09854962si9759948edb.608.2022.06.20.16.57.31; Mon, 20 Jun 2022 16:57:55 -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=orWnx4ae; 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 S1345119AbiFTWym (ORCPT + 99 others); Mon, 20 Jun 2022 18:54:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344329AbiFTWyR (ORCPT ); Mon, 20 Jun 2022 18:54:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 364431D329; Mon, 20 Jun 2022 15:54:16 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BE9DE61452; Mon, 20 Jun 2022 22:54:14 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C509DC341D1; Mon, 20 Jun 2022 22:54:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1655765653; bh=4P0omvn7xZZml8ofD3+CGOIHHbsezEb7QZrLKu90OT0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=orWnx4aeWOaEGSqtukrjM5xu3fUew/7lee51dA8xOS3m0UmQzyjCxsy+6TTEoYDVM 6mXvmNEzAFgbsYsA5WN+tCTKh5SfSEhfdQUr1KDf04CUXuA5zEW06sQHT7lrNPPSRs xmeYB0zKkeVLTnihfHF4PNZkme+75uGPAMZaCTCYJ+iSVr5zdwPq7cJK5jK1sEMnh9 nGmD1yVTV4uoyHItOmHDJB3KIydaRGwsmHrVHqVv6GFde0BG1rHrPXNmsVV1awDkVp lVniapfxxYtmEPotTpR+92sJLQ0WW47+SpdxeIXfpPGSdJm1k5iMO2Jk2qOsOMsF2v 11aQNfZSFUMrg== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 40F0F5C0E42; Mon, 20 Jun 2022 15:54:13 -0700 (PDT) From: "Paul E. McKenney" To: rcu@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel-team@fb.com, rostedt@goodmis.org, "Paul E. McKenney" , Neeraj Upadhyay , Eric Dumazet , Alexei Starovoitov , Andrii Nakryiko , Martin KaFai Lau , KP Singh Subject: [PATCH rcu 13/32] rcu-tasks: Add slow-IPI indicator to RCU Tasks Trace stall warnings Date: Mon, 20 Jun 2022 15:53:52 -0700 Message-Id: <20220620225411.3842519-13-paulmck@kernel.org> X-Mailer: git-send-email 2.31.1.189.g2e36527f23 In-Reply-To: <20220620225402.GA3842369@paulmck-ThinkPad-P17-Gen-1> References: <20220620225402.GA3842369@paulmck-ThinkPad-P17-Gen-1> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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 This commit adds a "I" indicator to the RCU Tasks Trace CPU stall warning when an IPI directed to a task has thus far failed to arrive. This serves as a debugging aid. Signed-off-by: Paul E. McKenney Cc: Neeraj Upadhyay Cc: Eric Dumazet Cc: Alexei Starovoitov Cc: Andrii Nakryiko Cc: Martin KaFai Lau Cc: KP Singh --- kernel/rcu/tasks.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/rcu/tasks.h b/kernel/rcu/tasks.h index 6b44c69eeca88..1cfbebf2b5977 100644 --- a/kernel/rcu/tasks.h +++ b/kernel/rcu/tasks.h @@ -1497,8 +1497,9 @@ static void show_stalled_task_trace(struct task_struct *t, bool *firstreport) } cpu = task_cpu(t); if (!task_call_func(t, trc_check_slow_task, &trc_rdr)) - pr_alert("P%d: %c\n", + pr_alert("P%d: %c%c\n", t->pid, + ".I"[t->trc_ipi_to_cpu >= 0], ".i"[is_idle_tsk]); else pr_alert("P%d: %c%c%c nesting: %d%c cpu: %d\n", -- 2.31.1.189.g2e36527f23