From patchwork Mon Jul 17 12:56:11 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: 121299 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp1104754vqt; Mon, 17 Jul 2023 06:16:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlFO15iOrA3B4lqRjYb9TW2uKpG0pvr21/17uWEJJrI/bmiccF4zxm0ywpHUONvbMFCdJjkm X-Received: by 2002:a05:6512:110a:b0:4fd:c715:5667 with SMTP id l10-20020a056512110a00b004fdc7155667mr654895lfg.20.1689599778649; Mon, 17 Jul 2023 06:16:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689599778; cv=none; d=google.com; s=arc-20160816; b=DCVEpWFTOixJgtDOQdn5X65H7gORAUoRpI96O+7vadj/3SaW6yF/UqSYa2PzrQMhdt BZe5VjhzirUa/eJTkGnWbSLMyQx4ZpeLfhDlBphdpG9D1yBdIcWYkZuocHvw3OH7D/Nh pkZfk7gViFSQJP2/bJ7V+Bm+tHYZn6bJWDrK/cGuaeNiQfcKfCg4Nl4RP7CUml8Esnkd IJCK6Uy9qnjuVKFxWgqnqkFqt7zXZ7JcBBBJblqzzQ0JUQeq3A2UHj8ZPnchJJAPfteM /s627isvuqzWY6J8OZs1ICTAmcpPsPdV0GgCUFewqT8RiBmR7lu2hLPqBR/P7DsyavYY v6vg== 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=3QRwIIAu6SKfQwuKHc8Rqk9eOFOdTrr4UqMtZzl4/z8=; fh=ZM10K6HjD/r4WXy4Zkdi2gMsH5LgiedgBWbKlMxQ14g=; b=rpoS1pK6ERkWFVh7KPnftVXvOQE+ZvEc96eFQoYa6bF+nPXC9wLBHT7vHqxBPJwrsR lDx7Lq8xrLxpIc7VU32khWBmu/BS041sJ0w5RClWHgMnCgNxKdaNwDV11vBjRc40t24S BbnblrkjR3VazU4OG1Ot7x900WW81Krn153dw1QQAARW8xBX9FVmt4VVqyg67gKqUyrM Desuc5Gl8kcB4F9CZCbRGjJYUCBa9Dp6RMP9Ds73CiFfOoBwsmLBnJhd5gGbFzFsQfPx 9htOPUP+a8DIHaX5CdDKuUwwg099HPa32HlTA7UWaL9gr38nL/B1SAd1WyyVJSSVYNNw CQiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4isY0zU3; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p6-20020aa7d306000000b0052165b1c2e2si5784747edq.4.2023.07.17.06.15.53; Mon, 17 Jul 2023 06:16:18 -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=@linutronix.de header.s=2020 header.b=4isY0zU3; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231146AbjGQM5H (ORCPT + 99 others); Mon, 17 Jul 2023 08:57:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230348AbjGQM47 (ORCPT ); Mon, 17 Jul 2023 08:56:59 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18417172C; Mon, 17 Jul 2023 05:56:25 -0700 (PDT) Date: Mon, 17 Jul 2023 12:56:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1689598571; 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=3QRwIIAu6SKfQwuKHc8Rqk9eOFOdTrr4UqMtZzl4/z8=; b=4isY0zU3c5Ul6iPccQlZm04q4iLXfT72llvfxngdvmvd0DvjYosDt97r/KFwvlhMYBP4um gwwWmk+Ojquj4unIWFAoKbNayoRZljBDSpEx9UkMyFEQahjlNYQSjc2gxUM3Qn4R57IMwd ZUwxbkRCETzKONaRlu9j0rxYW2hbQLC7tY61XmZ8nWNUOePS6IJ4YaH/R5wLFdpPgpP6Pz /yDA1LFITlqc91SwM8ua4SPR4kx9c0ynoexamOt4SYVXWsZA4SPmsSlvgIe0MRrWTUIC3W 2JMenDhrSEheMDADuYzaG5ixrHV7j5G0oTptvNQyju6pMZbfI5orukc4k09SPw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1689598571; 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=3QRwIIAu6SKfQwuKHc8Rqk9eOFOdTrr4UqMtZzl4/z8=; b=/UdhrTwC/SAzR0x716buR9G//O7jVf5c3f1+BkCjSkPcK1KkU/IEbJlfwApzceKGB+fxLm gVeBDoRj2ro5UKDA== From: "tip-bot2 for Peter Zijlstra" 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: Dump domains' sched group flags Cc: "Peter Zijlstra (Intel)" , Tim Chen , Valentin Schneider , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: =?utf-8?q?=3Ced1749262d94d95a8296c86a415999eda90bcfe3=2E1688770?= =?utf-8?q?494=2Egit=2Etim=2Ec=2Echen=40linux=2Eintel=2Ecom=3E?= References: =?utf-8?q?=3Ced1749262d94d95a8296c86a415999eda90bcfe3=2E16887704?= =?utf-8?q?94=2Egit=2Etim=2Ec=2Echen=40linux=2Eintel=2Ecom=3E?= MIME-Version: 1.0 Message-ID: <168959857109.28540.8257126646779538127.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1770804810475347514 X-GMAIL-MSGID: 1771673777450166449 The following commit has been merged into the sched/core branch of tip: Commit-ID: ed74cc4995d314ea6cbf406caf978c442f451fa5 Gitweb: https://git.kernel.org/tip/ed74cc4995d314ea6cbf406caf978c442f451fa5 Author: Peter Zijlstra AuthorDate: Fri, 07 Jul 2023 15:57:05 -07:00 Committer: Peter Zijlstra CommitterDate: Thu, 13 Jul 2023 15:21:53 +02:00 sched/debug: Dump domains' sched group flags There have been a case where the SD_SHARE_CPUCAPACITY sched group flag in a parent domain were not set and propagated properly when a degenerate domain is removed. Add dump of domain sched group flags of a CPU to make debug easier in the future. Usage: cat /debug/sched/domains/cpu0/domain1/groups_flags to dump cpu0 domain1's sched group flags. Signed-off-by: Peter Zijlstra (Intel) Signed-off-by: Tim Chen Signed-off-by: Peter Zijlstra (Intel) Reviewed-by: Valentin Schneider Link: https://lore.kernel.org/r/ed1749262d94d95a8296c86a415999eda90bcfe3.1688770494.git.tim.c.chen@linux.intel.com --- kernel/sched/debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index 066ff1c..aeeba46 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -427,6 +427,7 @@ static void register_sd(struct sched_domain *sd, struct dentry *parent) #undef SDM debugfs_create_file("flags", 0444, parent, &sd->flags, &sd_flags_fops); + debugfs_create_file("groups_flags", 0444, parent, &sd->groups->flags, &sd_flags_fops); } void update_sched_domain_debugfs(void)