xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dump full vCPU polling mask from 'e' key handler
@ 2010-02-11 10:00 Jan Beulich
  0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2010-02-11 10:00 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: text/plain, Size: 737 bytes --]

Signed-off-by: Jan Beulich <jbeulich@novell.com>

--- 2010-02-09.orig/xen/common/event_channel.c	2010-01-13 18:58:11.000000000 +0100
+++ 2010-02-09/xen/common/event_channel.c	2010-02-11 10:31:38.000000000 +0100
@@ -1066,9 +1066,11 @@ void evtchn_destroy_final(struct domain 
 
 static void domain_dump_evtchn_info(struct domain *d)
 {
+    static char buffer[MAX_VIRT_CPUS/4 + MAX_VIRT_CPUS/32 + 3];
     unsigned int port;
 
-    printk("Domain %d polling vCPUs: %08lx\n", d->domain_id, d->poll_mask[0]);
+    bitmap_scnprintf(buffer, ARRAY_SIZE(buffer), d->poll_mask, d->max_vcpus);
+    printk("Domain %d polling vCPUs: %s\n", d->domain_id, buffer);
 
     if ( !spin_trylock(&d->event_lock) )
         return;




[-- Attachment #2: dump-full-poll-mask.patch --]
[-- Type: text/plain, Size: 731 bytes --]

Signed-off-by: Jan Beulich <jbeulich@novell.com>

--- 2010-02-09.orig/xen/common/event_channel.c	2010-01-13 18:58:11.000000000 +0100
+++ 2010-02-09/xen/common/event_channel.c	2010-02-11 10:31:38.000000000 +0100
@@ -1066,9 +1066,11 @@ void evtchn_destroy_final(struct domain 
 
 static void domain_dump_evtchn_info(struct domain *d)
 {
+    static char buffer[MAX_VIRT_CPUS/4 + MAX_VIRT_CPUS/32 + 3];
     unsigned int port;
 
-    printk("Domain %d polling vCPUs: %08lx\n", d->domain_id, d->poll_mask[0]);
+    bitmap_scnprintf(buffer, ARRAY_SIZE(buffer), d->poll_mask, d->max_vcpus);
+    printk("Domain %d polling vCPUs: %s\n", d->domain_id, buffer);
 
     if ( !spin_trylock(&d->event_lock) )
         return;

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-02-11 10:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-11 10:00 [PATCH] dump full vCPU polling mask from 'e' key handler Jan Beulich

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).