avoid hypervisor panic when printing lock profiling information
PATCH 1/1 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 [email protected]
1 file changed, 2 insertions(+), 2 deletions(-)
xen/common/spinlock.c | 4 ++--
# HG changeset patch
# User Juergen Gross <[email protected]>
# 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 [email protected]
xen/common/spinlock.c +2 -2
@@ -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),
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel