Several items including sum-block, numabalancing associates and task
group path were missed in the header of sched debug info. Let's add them
to make the info clearer.
Signed-off-by: Honglei Wang <[email protected]>
---
kernel/sched/debug.c | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/kernel/sched/debug.c b/kernel/sched/debug.c
index aa29211de1bf..ca1316f1def6 100644
--- a/kernel/sched/debug.c
+++ b/kernel/sched/debug.c
@@ -548,7 +548,7 @@ print_task(struct seq_file *m, struct rq *rq, struct task_struct *p)
SPLIT_NS(schedstat_val_or_zero(p->stats.sum_block_runtime)));
#ifdef CONFIG_NUMA_BALANCING
- SEQ_printf(m, " %d %d", task_node(p), task_numa_group_id(p));
+ SEQ_printf(m, " %d %d", task_node(p), task_numa_group_id(p));
#endif
#ifdef CONFIG_CGROUP_SCHED
SEQ_printf_task_group_path(m, task_group(p), " %s")
@@ -563,8 +563,16 @@ static void print_rq(struct seq_file *m, struct rq *rq, int rq_cpu)
SEQ_printf(m, "\n");
SEQ_printf(m, "runnable tasks:\n");
- SEQ_printf(m, " S task PID tree-key switches prio"
- " wait-time sum-exec sum-sleep\n");
+ SEQ_printf(m, " S task PID tree-key switches prio");
+ SEQ_printf(m, " wait-time sum-exec sum-sleep");
+ SEQ_printf(m, " sum-block");
+#ifdef CONFIG_NUMA_BALANCING
+ SEQ_printf(m, " node numa-group");
+#endif
+#ifdef CONFIG_CGROUP_SCHED
+ SEQ_printf(m, " task-group");
+#endif
+ SEQ_printf(m, "\n");
SEQ_printf(m, "-------------------------------------------------------"
"------------------------------------------------------\n");
--
2.14.1