From: ankita@in.ibm.com (Ankita Garg)
To: linux-rt-users <linux-rt-users@vger.kernel.org>
Cc: Ingo Molnar <mingo@elte.hu>, Dinakar Guniguntala <dino@in.ibm.com>
Subject: [PATCH] Display information about # of -rt processes in sched_debug.c
Date: Mon, 23 Jul 2007 18:15:26 +0530 [thread overview]
Message-ID: <20070723124526.GD8055@in.ibm.com> (raw)
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
reply other threads:[~2007-07-23 12:45 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20070723124526.GD8055@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.