From: Juergen Gross Subject: [PATCH] avoid hypervisor panic when printing lock profiling information Date: Mon, 07 Nov 2011 08:07:43 +0100 Message-ID: <8738081c2e4f9a264987.1320649663@nehalem1> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1852013344514491635==" 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 --===============1852013344514491635== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit When printing lock profiling information via keyhandler in the hypervisor the system will panic. This patch corrects the problem. Signed-off-by: juergen.gross@ts.fujitsu.com 1 file changed, 2 insertions(+), 2 deletions(-) xen/common/spinlock.c | 4 ++-- --===============1852013344514491635== Content-Type: text/x-patch; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=xen-staging.hg.patch # HG changeset patch # User Juergen Gross # Date 1320649651 -3600 # Node ID 8738081c2e4f9a264987641464c544cbc789a94b # Parent df918a251d01d3ac6267bee9d4a7351d41167688 avoid hypervisor panic when printing lock profiling information When printing lock profiling information via keyhandler in the hypervisor the system will panic. This patch corrects the problem. Signed-off-by: juergen.gross@ts.fujitsu.com diff -r df918a251d01 -r 8738081c2e4f xen/common/spinlock.c --- a/xen/common/spinlock.c Fri Nov 04 13:52:11 2011 +0100 +++ b/xen/common/spinlock.c Mon Nov 07 08:07:31 2011 +0100 @@ -458,9 +458,9 @@ static void spinlock_profile_print_elem( int32_t type, int32_t idx, void *par) { if ( type == LOCKPROF_TYPE_GLOBAL ) - printk("%s %s:\n", lock_profile_ancs[idx].name, data->name); + printk("%s %s:\n", lock_profile_ancs[type].name, data->name); else - printk("%s %d %s:\n", lock_profile_ancs[idx].name, idx, data->name); + printk("%s %d %s:\n", lock_profile_ancs[type].name, idx, data->name); printk(" lock:%12"PRId64"(%08X:%08X), block:%12"PRId64"(%08X:%08X)\n", data->lock_cnt, (u32)(data->time_hold >> 32), (u32)data->time_hold, data->block_cnt, (u32)(data->time_block >> 32), --===============1852013344514491635== 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 --===============1852013344514491635==--