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

Commit 44671e2

Browse files
kudureranganathPeter Zijlstra
authored andcommitted
sched/debug: Print the local group's asym_prefer_cpu
Add a file to read local group's "asym_prefer_cpu" from debugfs. This information was useful when debugging issues where "asym_prefer_cpu" was incorrectly set to a CPU with a lower asym priority. Signed-off-by: K Prateek Nayak <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 8157fbc commit 44671e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

kernel/sched/debug.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,10 @@ static void register_sd(struct sched_domain *sd, struct dentry *parent)
588588
debugfs_create_file("flags", 0444, parent, &sd->flags, &sd_flags_fops);
589589
debugfs_create_file("groups_flags", 0444, parent, &sd->groups->flags, &sd_flags_fops);
590590
debugfs_create_u32("level", 0444, parent, (u32 *)&sd->level);
591+
592+
if (sd->flags & SD_ASYM_PACKING)
593+
debugfs_create_u32("group_asym_prefer_cpu", 0444, parent,
594+
(u32 *)&sd->groups->asym_prefer_cpu);
591595
}
592596

593597
void update_sched_domain_debugfs(void)

0 commit comments

Comments
 (0)