From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: [PATCH 2 of 5] xentrace: print calculated numbers in calculate_tbuf_size() Date: Wed, 23 Mar 2011 18:54:23 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com Cc: George Dunlap List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Olaf Hering # 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 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; }