* [PATCH] Display information about # of -rt processes in sched_debug.c
@ 2007-07-23 12:45 Ankita Garg
0 siblings, 0 replies; only message in thread
From: Ankita Garg @ 2007-07-23 12:45 UTC (permalink / raw)
To: linux-rt-users; +Cc: Ingo Molnar, Dinakar Guniguntala
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@in.ibm.com>
--
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@in.ibm.com)
Linux Technology Center
IBM India Systems & Technology Labs,
Bangalore, India
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-23 12:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-23 12:45 [PATCH] Display information about # of -rt processes in sched_debug.c Ankita Garg
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.