[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 2/2] Add cap value to credit scheduler debug info


  • To: xen-devel@xxxxxxxxxxxxx, george.dunlap@xxxxxxxxxxxxx
  • From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
  • Date: Mon, 14 Oct 2013 07:29:30 +0200
  • Cc: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
  • Delivery-date: Mon, 14 Oct 2013 05:30:28 +0000
  • Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer: In-Reply-To:References; b=LpZDRylFt+B8e3bEKgULMNmOq8L34Bh9fuPKl5X0K5gsozUR9dH7o7f/ Y9jixM7lQ3tbazOr85ACfDq/Ulk//zVc7oGA0b6kNHIVPaUjpfPVS1+kS S7nh/OnSdyAvrXIcpxsCRd+0Qn1E90ID3dmKoK/OmWBrWMUCM62f0Ol6v 7efck2JILcIISx0v7Gzpgk3lZ75Uv6rVr0yXafj3kZq3kIWqogB/pEADL WyX9QNRjMxbR76PxQsjdHZuVsfEJB;
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

Currently only the weight is the only scheduling parameter printed for
domains in the credit scheduler key handler. Add the cap value to be
printed as well.

Signed-off-by: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
---
 xen/common/sched_credit.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/xen/common/sched_credit.c b/xen/common/sched_credit.c
index 2dd5ed7..c737611 100644
--- a/xen/common/sched_credit.c
+++ b/xen/common/sched_credit.c
@@ -1747,7 +1747,8 @@ csched_dump_vcpu(struct csched_vcpu *svc)
 
     if ( sdom )
     {
-        printk(" credit=%i [w=%u]", atomic_read(&svc->credit), sdom->weight);
+        printk(" credit=%i [w=%u,cap=%u]", atomic_read(&svc->credit),
+                sdom->weight, sdom->cap);
 #ifdef CSCHED_STATS
         printk(" (%d+%u) {a/i=%u/%u m=%u+%u (k=%u)}",
                 svc->stats.credit_last,
-- 
1.7.10.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.