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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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).


Signed-off-by: Ankita Garg <ankita@xxxxxxxxxx>
--
 sched_debug.c |    4 ++++
 1 file changed, 4 insertions(+)

Index: linux-2.6.22.1/kernel/sched_debug.c
===================================================================
--- linux-2.6.22.1.orig/kernel/sched_debug.c	2007-07-23 16:28:50.000000000 +0530
+++ linux-2.6.22.1/kernel/sched_debug.c	2007-07-23 16:29:06.000000000 +0530
@@ -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);


-- 
Regards,
Ankita Garg (ankita@xxxxxxxxxx)
Linux Technology Center
IBM India Systems & Technology Labs, 
Bangalore, India   
-
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux