Message ID | 169669865669.3135.10220410461181815312.tip-bot2@tip-bot2 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a888:0:b0:403:3b70:6f57 with SMTP id x8csp1028830vqo; Sat, 7 Oct 2023 10:12:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEoqvpAYz/6Wb0HJMtHc11yDAcUfBvTcg4cfYcs2p4DPSG113wB3eJx4mkh9QUGiegoKCMP X-Received: by 2002:a05:6358:9691:b0:164:8742:525 with SMTP id o17-20020a056358969100b0016487420525mr3947654rwa.17.1696698725948; Sat, 07 Oct 2023 10:12:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696698725; cv=none; d=google.com; s=arc-20160816; b=d8zxjkkc4OM9JxgkSoV+gDzG26QFk+BXKKnsZxu5qGSTn/4hP27fe27j1ExnyR44RE m/IxDN9MSNEMf//Qw+tr2fz25NcUGDhnq0Z2pLCH1NB1PqIsDVdTLxHME0/oXq66VA6b apTjeSmsbNlhzoiQM3r5WzVSCXFhbcqA36lRn7PTr60c0LTRS+TyBhV7WqNnlmBUSNkr GIDIOVokt4dLi+CES3L89ZF/pRjMfqffm6BCju5QyZQonH/Yh60AsxflE0yk2K5s1LFO nOBE2/G1UswqFK2SBvm/Fl9Dc2kh9vqWE/SHRDGgSzflJUqkN5cpY/IWnr2Uia1b3bvK 1tOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=+qxOsyzNLULe8IX+kSDd7OdRreRx580qotjDMWlV34o=; fh=nLfBGEQBl83MBshD1VtFG6xeoUaOqViSEKqn5VuV4vQ=; b=ts2Ap7K2ra25to4u9XLy939y0A9KZWiNP6kR+z4gCmWTRjxGQyaHDsN5xad9aipm93 HNWZMQSiu8fyzCl9t+AiKCBBXTGoGRmtUY1b+ZjCN2hfCpYnOI5/0sf0XW5PQCaqkd7Z ex4L7Bj5oZhjoJEFtYyvHIX4nuMSE3gV46SRGEGULDoXgbg25lnP4UpPHrU3JKADhFFp IwTmdu3kg6dfGfEmLMHFuM6asphyct/oSyBHQPaABUouNWkbWaGkzBef3U0hak05puuu tVLWGhm2rDya3Phbtuud28QaFA3KjOesuQHd6h/MjYXgPd7bdOFszQdT3vew6mmiMg6Z Fitw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=VUHZhGMW; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id m65-20020a633f44000000b0056da0ae25d0si6397964pga.499.2023.10.07.10.12.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 07 Oct 2023 10:12:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=VUHZhGMW; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 309248040248; Sat, 7 Oct 2023 10:11:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344090AbjJGRLD (ORCPT <rfc822;pusanteemu@gmail.com> + 17 others); Sat, 7 Oct 2023 13:11:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344021AbjJGRLB (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 7 Oct 2023 13:11:01 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23E579C; Sat, 7 Oct 2023 10:11:00 -0700 (PDT) Date: Sat, 07 Oct 2023 17:10:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1696698657; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+qxOsyzNLULe8IX+kSDd7OdRreRx580qotjDMWlV34o=; b=VUHZhGMWeLmW9dA8Q3AEjzkfV5RLnKsOPZtTxqdPzhaJzjhM6kIGfvEeRQgeqVTzIi6Chy TModgjsVCmHGwus2Yx0h7tsbYh5mghSB/yhWz+XTkXWlsx9Dec1WDOQiDVRo6N2EwH8d+P 6+UzwXRgvxav9ZCGEOr8Woonse+yA6Ev9WI99PVigJI44yQOlNsQ09fVl6VQnXDb8RrpIV mxGFdrugvnddvdr6o4WbmIGALgEvLrhtV/Xu1vz1QUrlpQMIBuRo20ywcwbVYPr5sPGnfE Ul5r+v78pKvi/PzmzB/TpDddd58LO7RIKvjf9rpl6CQYkndHK0pAVdojyYZjFA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1696698657; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=+qxOsyzNLULe8IX+kSDd7OdRreRx580qotjDMWlV34o=; b=ISS+PjGbbvhVaYABbIl1noWYZ5RhUB/tVshyItdLWHbPwUyPetzvyfAa6rULEASMlR+cX6 dUmn+626UF6zJaBw== From: "tip-bot2 for Yajun Deng" <tip-bot2@linutronix.de> Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: sched/core] sched/debug: Print 'tgid' in sched_show_task() Cc: Yajun Deng <yajun.deng@linux.dev>, Ingo Molnar <mingo@kernel.org>, x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20230720080516.1515297-1-yajun.deng@linux.dev> References: <20230720080516.1515297-1-yajun.deng@linux.dev> MIME-Version: 1.0 Message-ID: <169669865669.3135.10220410461181815312.tip-bot2@tip-bot2> Robot-ID: <tip-bot2@linutronix.de> Robot-Unsubscribe: Contact <mailto:tglx@linutronix.de> to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Sat, 07 Oct 2023 10:11:28 -0700 (PDT) X-Spam-Level: ** X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778924066984682153 X-GMAIL-MSGID: 1779117563619759321 |
Series |
[tip:,sched/core] sched/debug: Print 'tgid' in sched_show_task()
|
|
Commit Message
tip-bot2 for Thomas Gleixner
Oct. 7, 2023, 5:10 p.m. UTC
The following commit has been merged into the sched/core branch of tip: Commit-ID: bc87127a45928de5fdf0ec39d7a86e1edd0e179e Gitweb: https://git.kernel.org/tip/bc87127a45928de5fdf0ec39d7a86e1edd0e179e Author: Yajun Deng <yajun.deng@linux.dev> AuthorDate: Thu, 20 Jul 2023 16:05:16 +08:00 Committer: Ingo Molnar <mingo@kernel.org> CommitterDate: Sat, 07 Oct 2023 11:33:28 +02:00 sched/debug: Print 'tgid' in sched_show_task() Multiple blocked tasks are printed when the system hangs. They may have the same parent pid, but belong to different task groups. Printing tgid lets users better know whether these tasks are from the same task group or not. Signed-off-by: Yajun Deng <yajun.deng@linux.dev> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20230720080516.1515297-1-yajun.deng@linux.dev --- kernel/sched/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/kernel/sched/core.c b/kernel/sched/core.c index f5783cb..cf6d3fd 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -9089,9 +9089,9 @@ void sched_show_task(struct task_struct *p) if (pid_alive(p)) ppid = task_pid_nr(rcu_dereference(p->real_parent)); rcu_read_unlock(); - pr_cont(" stack:%-5lu pid:%-5d ppid:%-6d flags:0x%08lx\n", - free, task_pid_nr(p), ppid, - read_task_thread_flags(p)); + pr_cont(" stack:%-5lu pid:%-5d tgid:%-5d ppid:%-6d flags:0x%08lx\n", + free, task_pid_nr(p), task_tgid_nr(p), + ppid, read_task_thread_flags(p)); print_worker_info(KERN_INFO, p); print_stop_info(KERN_INFO, p);