From: "Jan Beulich" <JBeulich@novell.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] x86: dump full IRQ affinity
Date: Thu, 21 Jan 2010 14:45:18 +0000 [thread overview]
Message-ID: <4B58768E020000780002B52B@vpn.id2.novell.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1767 bytes --]
Signed-off-by: Jan Beulich <jbeulich@novell.com>
--- 2010-01-06.orig/xen/arch/x86/irq.c 2010-01-21 15:19:09.000000000 +0100
+++ 2010-01-06/xen/arch/x86/irq.c 2010-01-21 15:43:02.000000000 +0100
@@ -1570,6 +1570,7 @@ static void dump_irqs(unsigned char key)
irq_guest_action_t *action;
struct domain *d;
unsigned long flags;
+ char cpustr[NR_CPUS/4+NR_CPUS/32+2];
printk("Guest interrupt information:\n");
@@ -1584,20 +1585,19 @@ static void dump_irqs(unsigned char key)
spin_lock_irqsave(&desc->lock, flags);
+ cpumask_scnprintf(cpustr, sizeof(cpustr), desc->affinity);
+ printk(" IRQ:%4d affinity:%s vec:%02x type=%-15s"
+ " status=%08x ",
+ irq, cpustr, cfg->vector,
+ desc->handler->typename, desc->status);
+
if ( !(desc->status & IRQ_GUEST) )
- /* Only show CPU0 - CPU31's affinity info.*/
- printk(" IRQ:%4d, IRQ affinity:0x%08x, Vec:%3d type=%-15s"
- " status=%08x mapped, unbound\n",
- irq, *(int*)desc->affinity.bits, cfg->vector,
- desc->handler->typename, desc->status);
+ printk("mapped, unbound\n");
else
{
action = (irq_guest_action_t *)desc->action;
- printk(" IRQ:%4d, IRQ affinity:0x%08x, Vec:%3d type=%-15s "
- "status=%08x in-flight=%d domain-list=",
- irq, *(int*)desc->affinity.bits, cfg->vector,
- desc->handler->typename, desc->status, action->in_flight);
+ printk("in-flight=%d domain-list=", action->in_flight);
for ( i = 0; i < action->nr_guests; i++ )
{
[-- Attachment #2: x86-dump-irq-many-cpus.patch --]
[-- Type: text/plain, Size: 1761 bytes --]
Signed-off-by: Jan Beulich <jbeulich@novell.com>
--- 2010-01-06.orig/xen/arch/x86/irq.c 2010-01-21 15:19:09.000000000 +0100
+++ 2010-01-06/xen/arch/x86/irq.c 2010-01-21 15:43:02.000000000 +0100
@@ -1570,6 +1570,7 @@ static void dump_irqs(unsigned char key)
irq_guest_action_t *action;
struct domain *d;
unsigned long flags;
+ char cpustr[NR_CPUS/4+NR_CPUS/32+2];
printk("Guest interrupt information:\n");
@@ -1584,20 +1585,19 @@ static void dump_irqs(unsigned char key)
spin_lock_irqsave(&desc->lock, flags);
+ cpumask_scnprintf(cpustr, sizeof(cpustr), desc->affinity);
+ printk(" IRQ:%4d affinity:%s vec:%02x type=%-15s"
+ " status=%08x ",
+ irq, cpustr, cfg->vector,
+ desc->handler->typename, desc->status);
+
if ( !(desc->status & IRQ_GUEST) )
- /* Only show CPU0 - CPU31's affinity info.*/
- printk(" IRQ:%4d, IRQ affinity:0x%08x, Vec:%3d type=%-15s"
- " status=%08x mapped, unbound\n",
- irq, *(int*)desc->affinity.bits, cfg->vector,
- desc->handler->typename, desc->status);
+ printk("mapped, unbound\n");
else
{
action = (irq_guest_action_t *)desc->action;
- printk(" IRQ:%4d, IRQ affinity:0x%08x, Vec:%3d type=%-15s "
- "status=%08x in-flight=%d domain-list=",
- irq, *(int*)desc->affinity.bits, cfg->vector,
- desc->handler->typename, desc->status, action->in_flight);
+ printk("in-flight=%d domain-list=", action->in_flight);
for ( i = 0; i < action->nr_guests; i++ )
{
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
reply other threads:[~2010-01-21 14: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=4B58768E020000780002B52B@vpn.id2.novell.com \
--to=jbeulich@novell.com \
--cc=xen-devel@lists.xensource.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).