From: "Jan Beulich" Subject: [PATCH] dump full vCPU polling mask from 'e' key handler Date: Thu, 11 Feb 2010 10:00:03 +0000 Message-ID: <4B73E333020000780002EE90@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartB69C8333.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__PartB69C8333.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Signed-off-by: Jan Beulich --- 2010-02-09.orig/xen/common/event_channel.c 2010-01-13 18:58:11.0000000= 00 +0100 +++ 2010-02-09/xen/common/event_channel.c 2010-02-11 10:31:38.0000000= 00 +0100 @@ -1066,9 +1066,11 @@ void evtchn_destroy_final(struct domain=20 =20 static void domain_dump_evtchn_info(struct domain *d) { + static char buffer[MAX_VIRT_CPUS/4 + MAX_VIRT_CPUS/32 + 3]; unsigned int port; =20 - 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_vcpu= s); + printk("Domain %d polling vCPUs: %s\n", d->domain_id, buffer); =20 if ( !spin_trylock(&d->event_lock) ) return; --=__PartB69C8333.0__= Content-Type: text/plain; name="dump-full-poll-mask.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="dump-full-poll-mask.patch" Signed-off-by: Jan Beulich =0A=0A--- 2010-02-09.orig/x= en/common/event_channel.c 2010-01-13 18:58:11.000000000 +0100=0A+++ = 2010-02-09/xen/common/event_channel.c 2010-02-11 10:31:38.000000000 = +0100=0A@@ -1066,9 +1066,11 @@ void evtchn_destroy_final(struct domain =0A = =0A static void domain_dump_evtchn_info(struct domain *d)=0A {=0A+ = static char buffer[MAX_VIRT_CPUS/4 + MAX_VIRT_CPUS/32 + 3];=0A = unsigned int port;=0A =0A- printk("Domain %d polling vCPUs: %08lx\n", = d->domain_id, d->poll_mask[0]);=0A+ bitmap_scnprintf(buffer, ARRAY_SIZE(= buffer), d->poll_mask, d->max_vcpus);=0A+ printk("Domain %d polling = vCPUs: %s\n", d->domain_id, buffer);=0A =0A if ( !spin_trylock(&d->even= t_lock) )=0A return;=0A --=__PartB69C8333.0__= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=__PartB69C8333.0__=--