Commit 59f677c0 authored by Ankita Garg's avatar Ankita Garg Committed by Thomas Gleixner

sched: fix rt stats output

So, I have merged my previous patch (to display rt_nr_running info in
sched_debug.c) with this one.
Signed-off-by: default avatarAnkita Garg <ankita@in.ibm.com>
[mingo@elte.hu: fix it to work on !SCHEDSTATS too]
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
--
 kernel/sched_debug.c |   13 +++++++++++++
 1 file changed, 13 insertions(+)
parent 6c24cddb
...@@ -280,6 +280,19 @@ static void print_cpu(struct seq_file *m, int cpu) ...@@ -280,6 +280,19 @@ static void print_cpu(struct seq_file *m, int cpu)
P(cpu_load[2]); P(cpu_load[2]);
P(cpu_load[3]); P(cpu_load[3]);
P(cpu_load[4]); P(cpu_load[4]);
#ifdef CONFIG_PREEMPT_RT
/* Print rt related rq stats */
P(rt.rt_nr_running);
P(rt.rt_nr_uninterruptible);
# ifdef CONFIG_SCHEDSTATS
P(rto_schedule);
P(rto_schedule_tail);
P(rto_wakeup);
P(rto_pulled);
P(rto_pushed);
# endif
#endif
#undef P #undef P
#undef PN #undef PN
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment