Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit ed74cc4

Browse files
author
Peter Zijlstra
committed
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) <[email protected]> Signed-off-by: Tim Chen <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Reviewed-by: Valentin Schneider <[email protected]> Link: https://lore.kernel.org/r/ed1749262d94d95a8296c86a415999eda90bcfe3.1688770494.git.tim.c.chen@linux.intel.com
1 parent 1795324 commit ed74cc4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

kernel/sched/debug.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ static void register_sd(struct sched_domain *sd, struct dentry *parent)
427427
#undef SDM
428428

429429
debugfs_create_file("flags", 0444, parent, &sd->flags, &sd_flags_fops);
430+
debugfs_create_file("groups_flags", 0444, parent, &sd->groups->flags, &sd_flags_fops);
430431
}
431432

432433
void update_sched_domain_debugfs(void)

0 commit comments

Comments
 (0)