Display information about # of -rt processes in sched_debug.c
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).
Signed-off-by Ankita Garg <[email protected]>
--
sched_debug.c | 4 ++++ 1 file changed, 4 insertions(+)
kernel/sched_debug.c +4 -0
@@ -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