From patchwork Thu Oct 5 08:59:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: tip-bot2 for Thomas Gleixner X-Patchwork-Id: 148694 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2016:b0:403:3b70:6f57 with SMTP id fe22csp313521vqb; Thu, 5 Oct 2023 06:56:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG3MeALhTKYTBRZr6GKBYVYDe8QUO7qyaiwOYGOZ3qraang/JeBP9Yq20su45w8r0LUdLBy X-Received: by 2002:a05:6a20:8f08:b0:154:d3ac:2076 with SMTP id b8-20020a056a208f0800b00154d3ac2076mr6702395pzk.40.1696514193839; Thu, 05 Oct 2023 06:56:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696514193; cv=none; d=google.com; s=arc-20160816; b=tyvUODNycsPFKbAsxxwoAPsspMbtKFYT4ZSs2WkLJz30JWwjXqJLFmS/sPLUEnhlFv w++N0Pvo4RLcPwzUhxx51iMsJ04GWwAHoyBmSRRbL5anoqPlbAlqTOfXvvkY0AroBHbz xVbnWHsKS+G5DYUu5bu0h8+mm8nmostbr8ZzNNM7wYlMaBR7X4EIPnHJdT1Ga2Ogv6Ek viugR4xreZNRXNj6JR6pmfBu93oVlMR+qvj7/DyUiiQr7tsI5KpfEA5HJ5UcuCQelZdp zL6IZ0UYHnDIFp64PWqHEnZOkvvWnzpAoB4O/RnOac6RJh1gI8rGOjvL/3SZiB9A6Sib AVFQ== 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=hu3OvSqomvkKVlCsfwO3LVPRLmGAEPlXBoztNRh1qEA=; fh=nLfBGEQBl83MBshD1VtFG6xeoUaOqViSEKqn5VuV4vQ=; b=prj79EenVf+f3YdcAkFZcRkekS9SANhKvtphvsMpuqcfo9rPKQylo8YhlHnF6RmOs4 yX7PknfyqFOjuYkHLmA+pckxRhR7Nt2SkeiDDACV1YM+1f9ULQOVwYjNpRP24BYkwh4Q 2BuWj93d5+bv/YABCekQFXerZDYLWX4NYN7hsRMwCh93MH0JSU0C28IjikTgfyrtP+1l 4D492OWoJKtNSuPWEE65aZpLXAxsVTjUeDQQbJM/6OATkZf7c6Lpxgpc/IzVNJzdU2hA eOkOJ1N+QWErRbxJL+E+vfyGCYe0QTd20zmnz5MZe0CDh9NJAc4COiKiY20igQK3DF7C Jh1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=MzVk7DzN; 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:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id p18-20020a056a000b5200b0068fc49cc456si1523749pfo.248.2023.10.05.06.56.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 06:56:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=MzVk7DzN; 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:5 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 groat.vger.email (Postfix) with ESMTP id 0BED380ED992; Thu, 5 Oct 2023 06:56:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229572AbjJENzw (ORCPT + 19 others); Thu, 5 Oct 2023 09:55:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243745AbjJENtH (ORCPT ); Thu, 5 Oct 2023 09:49:07 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B29493F4; Thu, 5 Oct 2023 01:59:37 -0700 (PDT) Date: Thu, 05 Oct 2023 08:59:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1696496375; 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=hu3OvSqomvkKVlCsfwO3LVPRLmGAEPlXBoztNRh1qEA=; b=MzVk7DzNqSImBI9Ofjs8/zWEaaWJybOv5o4GaL8cQzRnRWvBVVqQW9se/aUy7Kvw38VqSi Zd5YSKl5vC48W0aCNSXSwLZhAvHP8h6mtkuJ8onm4fpuXlmdmKCxrLFoZmQL9jXQ15VQet I/KsXuWPuhtKWw0HL0jUtDWpsPxDZXoYWJa0Jrk5eB4iF3b9MzS4zOFa3F0hRlW49Gvv23 h90NIe2GGSVxI2/ASZ3UdiowCOBH89FaiPaP3yihvS6saB99e9DJQfG47HaX7vpVy9LWDQ uv3d9do2eB8RyAzJhtdEx+hzpFsThDzQN3xl/YFJT4XKMKoA+RtOBRLwatOq9Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1696496375; 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=hu3OvSqomvkKVlCsfwO3LVPRLmGAEPlXBoztNRh1qEA=; b=s8C4xUiqeSGkNtR+Wl2Gu/AbpE4YaMITvR8IXO4RPPv2Se7/hL5hNSG8XvMV1ZdRqdX/Ci +ZCx21UHYnDhHBCg== From: "tip-bot2 for Yajun Deng" 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 , Ingo Molnar , 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: <169649637489.3135.8306333869717553667.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 05 Oct 2023 06:56:27 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778924066984682153 X-GMAIL-MSGID: 1778924066984682153 The following commit has been merged into the sched/core branch of tip: Commit-ID: 9b46f1abc6d4e855ebd91b011aa3b49042bad7e4 Gitweb: https://git.kernel.org/tip/9b46f1abc6d4e855ebd91b011aa3b49042bad7e4 Author: Yajun Deng AuthorDate: Thu, 20 Jul 2023 16:05:16 +08:00 Committer: Ingo Molnar CommitterDate: Thu, 05 Oct 2023 10:49:56 +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 Signed-off-by: Ingo Molnar 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);