WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 2 of 5] xentrace: print calculated numbers in calcula

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 2 of 5] xentrace: print calculated numbers in calculate_tbuf_size()
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Tue, 22 Mar 2011 20:21:30 +0100
Cc: George Dunlap <george.dunlap@xxxxxxxxxx>
Delivery-date: Tue, 22 Mar 2011 12:26:39 -0700
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1300821693; l=874; s=domk; d=aepfle.de; h=Cc:To:From:Date:References:In-Reply-To:Subject: Content-Transfer-Encoding:MIME-Version:Content-Type:X-RZG-CLASS-ID: X-RZG-AUTH; bh=8opmMlrMXKSqDByw3rmzTYAflsY=; b=aDBy0J8l2M8CjoxxNqxlbCtRFzkXXwJR7tB3PxDjVxZ0qKa+obnhdB3iCeHmD2DNl2h jVORBvoac6eAymwJYrBaFBu8+mo06ne5HhuOA9fheVnBKuXbzlirUTZWBBOvdiesD8inD +31OHLP1DLUH4CebYIG1rQkrQHa0qGM3hNA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1300821688@localhost>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <patchbomb.1300821688@localhost>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.8
# 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

<Prev in Thread] Current Thread [Next in Thread>