|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 2 of 5] xentrace: print calculated numbers in calcula
# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1300900085 -3600
# Node ID f9b7516023d3897e545e41ecf6950a798bea0703
# Parent 14ac28e4656d0c235c5edf119426b1bcf3bf33d4
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 14ac28e4656d -r f9b7516023d3 xen/common/trace.c
--- a/xen/common/trace.c Wed Mar 23 18:08:04 2011 +0100
+++ b/xen/common/trace.c Wed Mar 23 18:08:05 2011 +0100
@@ -127,6 +127,8 @@
t_info_bytes = num_online_cpus() * pages + t_info_first_offset;
t_info_bytes *= sizeof(uint32_t);
t_info_pages = PFN_UP(t_info_bytes);
+ printk(XENLOG_INFO "xentrace: 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
|
|
|
|
|