Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp32535614rwd; Fri, 7 Jul 2023 16:04:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlEyE2TAMqCtIbhCyWLIJ3b2KKpvO7rozr+5OnVlXGKshDwrmvDuNn9Lxgk3c8Hea1VErOyx X-Received: by 2002:a17:906:9e1d:b0:992:58fc:bcb8 with SMTP id fp29-20020a1709069e1d00b0099258fcbcb8mr4178464ejc.56.1688771075020; Fri, 07 Jul 2023 16:04:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688771075; cv=none; d=google.com; s=arc-20160816; b=0umWnxr9JFeZ/T81VMiF5bT4qJkyiwt3xis+/EiA+f8rCB+UkX6kzkQJtxjihKpDLQ VQVQXSi/je+hFzVAU2ts2nYIy3Bg3VWPO8zQLRljbluAhqaDptTNnrX0W9FxFQ3Ichmu Btym6QMWP4f+hMFgVKmylkUwJ1lIfyjJKIsc+p+7GpywSrVhZtR5iXTcInlFUuMwEu66 Q3hm3Yq59spTWNBR/2C2k8q1/pBR0VZ+NWUmIwfikLMaLlJtnat3VJIrjiugc1F/yCjY 2P6fQFOL2GblKkqbYRtS7mEX/oKsXlu8o0DHUEwSABbuXJKU1GVtb10NMLswYI/Ol3aD YSfg== 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=dWhnOjmqmg9IKtjnZOV9zcpJlkplNSq+xqVYJ4liqto=; fh=Y3cOyF3me1IjuIlWdoe+aBI3Fmal20tb9JaT70O00RM=; b=wFWeb5X4Bg1Mr0ir7lhbv20rr8r4ZlFgjB9BAyzxoUZcpWWGHusMk7Kjzz0e6dVrmA W8aDtJM69YGg4ItFKq32PyEKskoH0aFqCxsK0+sBXAvbRRsy5E3P8QvT0l7qlxrNK9C+ WVxdiTCrYSfyXjt8Vr5+Vw2ZXqrOszHEsYBiB4Nl2+Iu/t5ty+BqWEKXNx9aVwmUYZgp 642frfDQpPDwHgUTKyn5129F+1JNvdVR53yiWhKoMxO9S85rCuk8l8Zc/QUJD0BlpofB p9TvRI3Uqekn+TxIBfv5/vGqr3QiSc7sDfv5NEfUu1HZBzyQ8nZdHDngiQIud4AJKvSG dwcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gSTxPZ7s; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ce9-20020a170906b24900b00992d0de875esi2670904ejb.914.2023.07.07.16.04.10; Fri, 07 Jul 2023 16:04:35 -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=@intel.com header.s=Intel header.b=gSTxPZ7s; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230044AbjGGW5R (ORCPT + 99 others); Fri, 7 Jul 2023 18:57:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232010AbjGGW47 (ORCPT ); Fri, 7 Jul 2023 18:56:59 -0400 Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0088419B7 for ; Fri, 7 Jul 2023 15:56:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1688770618; x=1720306618; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=862H8iEOdr8bBhkOKfZF+tLzXIXXbB5+ndLrLrloY0I=; b=gSTxPZ7sK6/tTXb4V1TnhFoIl+9cKmjAKlGUF/FyHvrJ66C35qHoYfle aBnDhCmw0MoWYmZdu6P2nK3GJk+7hYllOw0Ubf3qA0yZosb2wAfLOFddP 0T2XYFnWrp8ToT0WInUzyn6QpSK3IxJaQIuRi5sbpg96cLVA3143lLvJu vmUcdi/oLvJf7gMYU6dgp1deRuyBzmYyW+wt360rGSUXPbxm79B2LNpkW qjBo2/fli9UVw9TG7dEmagP93W/y4LXAFzoBcJ4vzBvrcWDU8Dqay372N cy9vzyjHoH6Lk0gs2ZgIBpFTZepMJtMtfNgTnaVz44okQtHSXXAG8hqtk w==; X-IronPort-AV: E=McAfee;i="6600,9927,10764"; a="427683523" X-IronPort-AV: E=Sophos;i="6.01,189,1684825200"; d="scan'208";a="427683523" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jul 2023 15:56:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10764"; a="714176687" X-IronPort-AV: E=Sophos;i="6.01,189,1684825200"; d="scan'208";a="714176687" Received: from b04f130c83f2.jf.intel.com ([10.165.154.98]) by orsmga007.jf.intel.com with ESMTP; 07 Jul 2023 15:56:58 -0700 From: Tim Chen To: Peter Zijlstra Cc: Juri Lelli , Vincent Guittot , Ricardo Neri , "Ravi V . Shankar" , Ben Segall , Daniel Bristot de Oliveira , Dietmar Eggemann , Len Brown , Mel Gorman , "Rafael J . Wysocki" , Srinivas Pandruvada , Steven Rostedt , Tim Chen , Valentin Schneider , Ionela Voinescu , x86@kernel.org, linux-kernel@vger.kernel.org, Shrikanth Hegde , Srikar Dronamraju , naveen.n.rao@linux.vnet.ibm.com, Yicong Yang , Barry Song , Chen Yu , Hillf Danton Subject: [Patch v3 6/6] sched/debug: Dump domains' sched group flags Date: Fri, 7 Jul 2023 15:57:05 -0700 Message-Id: X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 From: "Peter Zijlstra (Intel)" 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: Tim Chen --- kernel/sched/debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c index 1637b65ba07a..55b50f940feb 100644 --- a/kernel/sched/debug.c +++ b/kernel/sched/debug.c @@ -389,6 +389,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) -- 2.32.0