All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dario Faggioli <dfaggioli@suse.com>
To: xen-devel@lists.xenproject.org
Cc: George Dunlap <george.dunlap@citrix.com>
Subject: [RFC PATCH v1 3/8] xen: sched: Credit2: show runqueue id during runqueue dump
Date: Fri, 12 Oct 2018 19:44:08 +0200	[thread overview]
Message-ID: <153936624851.22652.10984530319522981716.stgit@wayrath> (raw)
In-Reply-To: <153936590062.22652.12114301510794181099.stgit@wayrath>

Instead than just a sequence number, and consistently
with what's shown when the runqueues are created.

Also add some more pretty printing here and there.

No functional change intended.

Signed-off-by: Dario Faggioli <dfaggioli@suse.com>
---
Cc: George Dunlap <george.dunlap@citrix.com>
---
 xen/common/sched_credit2.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/xen/common/sched_credit2.c b/xen/common/sched_credit2.c
index 06b45725fa..617a7ece6e 100644
--- a/xen/common/sched_credit2.c
+++ b/xen/common/sched_credit2.c
@@ -3658,7 +3658,7 @@ dump_pcpu(const struct scheduler *ops, int cpu)
 #define cpustr keyhandler_scratch
 
     cpumask_scnprintf(cpustr, sizeof(cpustr), per_cpu(cpu_sibling_mask, cpu));
-    printk("CPU[%02d] runq=%d, sibling=%s, ", cpu, c2r(cpu), cpustr);
+    printk(" CPU[%02d] runq=%d, sibling=%s, ", cpu, c2r(cpu), cpustr);
     cpumask_scnprintf(cpustr, sizeof(cpustr), per_cpu(cpu_core_mask, cpu));
     printk("core=%s\n", cpustr);
 
@@ -3760,7 +3760,8 @@ csched2_dump(const struct scheduler *ops)
         /* We need the lock to scan the runqueue. */
         spin_lock(&rqd->lock);
 
-        printk("Runqueue %d:\n", i);
+        printk("Runqueue %d:\n", rqd->id);
+        printk("CPUs:\n");
 
         for_each_cpu(j, &rqd->active)
             dump_pcpu(ops, j);


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  parent reply	other threads:[~2018-10-12 17:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-12 17:43 [RFC PATCH v1 0/8] Series short description Dario Faggioli
2018-10-12 17:43 ` [RFC PATCH v1 1/8] xen: sched: Credit2: during scheduling, update the idle mask before using it Dario Faggioli
2018-10-12 17:44 ` [RFC PATCH v1 2/8] xen: sched: Credit2: avoid looping too much (over runqueues) during load balancing Dario Faggioli
2018-10-12 17:44 ` Dario Faggioli [this message]
2018-10-12 17:44 ` [RFC PATCH v1 4/8] xen: sched: Credit2: generalize topology related bootparam handling Dario Faggioli
2018-10-12 17:44 ` [RFC PATCH v1 5/8] xen: sched: Credit2 group-scheduling: data structures Dario Faggioli
2018-10-12 17:44 ` [RFC PATCH v1 6/8] xen: sched: Credit2 group-scheduling: selecting next vcpu to run Dario Faggioli
2018-11-21 16:15   ` George Dunlap
2018-10-12 17:44 ` [RFC PATCH v1 7/8] xen: sched: Credit2 group-scheduling: tickling Dario Faggioli
2018-10-12 17:44 ` [RFC PATCH v1 8/8] xen: sched: Credit2 group-scheduling: anti-starvation measures Dario Faggioli
2018-11-07 17:58 ` [RFC PATCH v1 0/8] Series short description Dario Faggioli

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=153936624851.22652.10984530319522981716.stgit@wayrath \
    --to=dfaggioli@suse.com \
    --cc=george.dunlap@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /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.