Skip to contentSkip to conversation

dump full vCPU polling mask from 'e' key handler

PATCH New Jan Beulich 1 participant 1 message Feb 11, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dump full vCPU polling mask from 'e' key handler

xen/common/event_channel.c +3 -1
@@ -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;
xen/common/event_channel.c +3 -1
@@ -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;

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel