Messages in this thread Patch in this message | | | From | Tim Chen <> | Subject | [Patch v3 6/6] sched/debug: Dump domains' sched group flags | Date | Fri, 7 Jul 2023 15:57:05 -0700 |
| |
From: "Peter Zijlstra (Intel)" <peterz@infradead.org>
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 <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 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
| |