All of lore.kernel.org
 help / color / mirror / Atom feed
From: ankita@in.ibm.com (Ankita Garg)
To: Ingo Molnar <mingo@elte.hu>
Cc: linux-rt-users <linux-rt-users@vger.kernel.org>,
	Dinakar Guniguntala <dino@in.ibm.com>
Subject: Re: [PATCH] Display -rt related stats in /proc/schedstat
Date: Wed, 25 Jul 2007 16:59:24 +0530	[thread overview]
Message-ID: <20070725112924.GC7745@in.ibm.com> (raw)
In-Reply-To: <20070725080504.GD5125@elte.hu>

On Wed, Jul 25, 2007 at 10:05:04AM +0200, Ingo Molnar wrote:
> 
> * Ankita Garg <ankita@in.ibm.com> wrote:
> 
> > Hi,
> > 
> > This patch adds support to display captured -rt stats under 
> > /proc/schedstat.
> 
> hm, could you add it to /proc/sched_debug instead? That's where all the 
> runqueue values are showing up normally. I'm also a bit wary about 
> introducing a new schedstats version for -rt.

So, I have merged my previous patch (to display rt_nr_running info in
sched_debug.c) with this one.


Signed-off-by: Ankita Garg <ankita@in.ibm.com>
--
 sched_debug.c |    9 +++++++++
 1 file changed, 9 insertions(+)

Index: linux-2.6.22.1/kernel/sched_debug.c
===================================================================
--- linux-2.6.22.1.orig/kernel/sched_debug.c	2007-07-25 14:26:53.000000000 +0530
+++ linux-2.6.22.1/kernel/sched_debug.c	2007-07-25 14:58:07.000000000 +0530
@@ -161,6 +161,15 @@
 	P(cpu_load[2]);
 	P(cpu_load[3]);
 	P(cpu_load[4]);
+#ifdef CONFIG_PREEMPT_RT
+	/* Print rt related rq stats */
+	P(rt_nr_running);
+	P(rt_nr_uninterruptible);
+	P(rto_schedule);
+	P(rto_wakeup);
+	P(rto_pulled);
+#endif
+
 #undef P
 
 	print_cfs_stats(m, cpu, now);


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

  reply	other threads:[~2007-07-25 11:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2007-07-25 11:35     ` Ingo Molnar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070725112924.GC7745@in.ibm.com \
    --to=ankita@in.ibm.com \
    --cc=dino@in.ibm.com \
    --cc=linux-rt-users@vger.kernel.org \
    --cc=mingo@elte.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.