From: Olaf Hering Date: Fri, 25 Mar 2011 08:57:28 +0000 (+0000) Subject: xentrace: print calculated numbers in calculate_tbuf_size() X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=b850b9b5730eae9ad058bf17f5b760183a021a90;p=xen.git 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 --- diff --git a/xen/common/trace.c b/xen/common/trace.c index e290cdce17..cebc5d48d8 100644 --- a/xen/common/trace.c +++ b/xen/common/trace.c @@ -127,6 +127,8 @@ static int calculate_tbuf_size(unsigned int pages) t_info_words = num_online_cpus() * pages + t_info_first_offset; t_info_bytes = t_info_words * 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; }