All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Display -rt related stats in /proc/schedstat
@ 2007-07-23 12:59 Ankita Garg
  2007-07-23 12:24 ` Joachim Deguara
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Ankita Garg @ 2007-07-23 12:59 UTC (permalink / raw)
  To: linux-rt-users; +Cc: Ingo Molnar, Dinakar Guniguntala

Hi,

This patch adds support to display captured -rt stats under /proc/schedstat.


Signed-off-by: Ankita Garg <ankita@in.ibm.com>
--
 sched_stats.h |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Index: linux-2.6.22.1/kernel/sched_stats.h
===================================================================
--- linux-2.6.22.1.orig/kernel/sched_stats.h	2007-07-23 18:15:57.000000000 +0530
+++ linux-2.6.22.1/kernel/sched_stats.h	2007-07-23 18:24:03.000000000 +0530
@@ -21,12 +21,15 @@
 
 		/* runqueue-specific stats */
 		seq_printf(seq,
-		    "cpu%d %lu %lu %lu %lu %lu %lu %lu %lu %lu %llu %llu %lu",
+		    "cpu%d %lu %lu %lu %lu %lu %lu %lu %lu %lu %llu %lu %lu %lu %llu %lu",
 		    cpu, rq->yld_both_empty,
 		    rq->yld_act_empty, rq->yld_exp_empty, rq->yld_cnt,
 		    rq->sched_switch, rq->sched_cnt, rq->sched_goidle,
 		    rq->ttwu_cnt, rq->ttwu_local,
 		    rq->rq_sched_info.cpu_time,
+#ifdef CONFIG_PREEMPT_RT
+		    rq->rto_schedule, rq->rto_wakeup, rq->rto_pulled,
+#endif
 		    rq->rq_sched_info.run_delay, rq->rq_sched_info.pcnt);
 
 		seq_printf(seq, "\n");


-- 
Regards,
Ankita Garg (ankita@in.ibm.com)
Linux Technology Center
IBM India Systems & Technology Labs, 
Bangalore, India   

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-07-25 12:53 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-23 12:59 [PATCH] Display -rt related stats in /proc/schedstat Ankita Garg
2007-07-23 12:24 ` Joachim Deguara
2007-07-23 14:58   ` Ankita Garg
2007-07-23 18:48     ` Joachim Deguara
2007-07-24 10:36 ` John Sigler
2007-07-25  6:08   ` Ankita Garg
2007-07-25 12:53     ` John Sigler
2007-07-25  8:05 ` Ingo Molnar
2007-07-25 11:29   ` Ankita Garg
2007-07-25 11:35     ` Ingo Molnar

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.