[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] avoid hypervisor panic when printing lock profiling information
# HG changeset patch # User Juergen Gross <juergen.gross@xxxxxxxxxxxxxx> # Date 1320676671 0 # Node ID b0e140037c597be54a5f28a9f776844bf25f8a8b # Parent 10ddd98dcc62b0fb4238794144b180c604f1696b 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 <juergen.gross@xxxxxxxxxxxxxx> Committed-by: Keir Fraser <keir@xxxxxxx> --- diff -r 10ddd98dcc62 -r b0e140037c59 xen/common/spinlock.c --- a/xen/common/spinlock.c Mon Nov 07 14:36:44 2011 +0000 +++ b/xen/common/spinlock.c Mon Nov 07 14:37:51 2011 +0000 @@ -458,9 +458,9 @@ 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), _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |