Skip to contentSkip to conversation

Display information about # of -rt processes in sched_debug.c

PATCH New Ankita Garg 1 participant 1 message Jul 23, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Display information about # of -rt processes in sched_debug.c

Hi,

This patch enables printing of rt_nr_running & rt_nr_uninterruptible fields from sched_debug.c. Right now, this information in not being captured in either sched_debug or schedstats. Infact, rt stats like rto_pulled, rto_wakeup, etc are being captured at the runqueue level, but not displayed under /proc/schedstats (a patch to this effect follows).

--

 sched_debug.c |    4 ++++
 1 file changed, 4 insertions(+)
kernel/sched_debug.c +4 -0
Index: linux-2.6.22.1/kernel/sched_debug.c
===================================================================
@@ -147,6 +147,10 @@
 	P(nr_switches);
 	P(nr_load_updates);
 	P(nr_uninterruptible);
+#ifdef CONFIG_PREEMPT_RT
+	P(rt_nr_running);
+	P(rt_nr_uninterruptible);
+#endif
 	SEQ_printf(m, "  .%-30s: %lu\n", "jiffies", jiffies);
 	P(next_balance);
 	P(curr->pid);
Signature · 5 lines
Regards,
Ankita Garg ([email protected])
Linux Technology Center
IBM India Systems & Technology Labs, 
Bangalore, India