WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] x86: dump full IRQ affinity

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86: dump full IRQ affinity
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 21 Jan 2010 07:15:17 -0800
Delivery-date: Thu, 21 Jan 2010 07:15:27 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1264086758 0
# Node ID 57893d13574c5437aa332e44786e892f157eed22
# Parent  ba6a71530fc67e3cc6260a8a2435832974b9aa29
x86: dump full IRQ affinity

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 xen/arch/x86/irq.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff -r ba6a71530fc6 -r 57893d13574c xen/arch/x86/irq.c
--- a/xen/arch/x86/irq.c        Thu Jan 21 15:12:17 2010 +0000
+++ b/xen/arch/x86/irq.c        Thu Jan 21 15:12:38 2010 +0000
@@ -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++ )
             {

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] x86: dump full IRQ affinity, Xen patchbot-unstable <=