|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 2 of 5] xentrace: print calculated numbers in calcula
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1300813690 -3600
# Node ID d61854ab2758f691818678c2d03e18e0e165802a
# Parent 08df96398bff82a8924a37eda6ddffd1ada3f407
xentrace: print calculated numbers in calculate_tbuf_size()
Print number of pages to allocate for per-cpu tracebuffer and metadata
to ease debugging when allocation fails.
Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
diff -r 08df96398bff -r d61854ab2758 xen/common/trace.c
--- a/xen/common/trace.c Tue Mar 22 18:08:05 2011 +0100
+++ b/xen/common/trace.c Tue Mar 22 18:08:10 2011 +0100
@@ -127,6 +127,8 @@
t_info_pages /= PAGE_SIZE;
if ( t_info_pages % PAGE_SIZE || t_info_pages == 0 )
t_info_pages++;
+ printk(XENLOG_INFO "Xen trace buffers: requesting %u t_info pages for %u
trace pages on %u cpus\n",
+ t_info_pages, pages, num_online_cpus());
return pages;
}
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|