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

Re: [Xen-devel] Re: how to avoid lost trace records?

To: George Dunlap <dunlapg@xxxxxxxxx>
Subject: Re: [Xen-devel] Re: how to avoid lost trace records?
From: Olaf Hering <olaf@xxxxxxxxx>
Date: Thu, 25 Nov 2010 22:04:08 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Thu, 25 Nov 2010 13:05:16 -0800
Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; t=1290719054; l=1436; s=domk; d=aepfle.de; h=In-Reply-To:Content-Type:MIME-Version:References:Subject:Cc:To:From: Date:X-RZG-CLASS-ID:X-RZG-AUTH; bh=mkhpLv38rzjpME0QIdoA9IekILI=; b=epu6v/76HXInmb+CyL2Ay9N2uDQiB3DdRFI4q1kHscqSyHqIVHV6kx7uGGbep5w057n ab4CdnU3G7kTT7Bb8oc2tCUBOhog8D7bRZ6xP1uON4ayxV6SIumeOpiW0S/fRUN9PbVcB CMmSnZrR/2kgt3peDbF7V2+fg3Mt1wxMcsg=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <AANLkTinprmdxM3EWN_59hEVc5fp0xNdh2XmDwUypimLR@xxxxxxxxxxxxxx>
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: <20101119154652.GA11544@xxxxxxxxx> <20101120202122.GA31616@xxxxxxxxx> <AANLkTinprmdxM3EWN_59hEVc5fp0xNdh2XmDwUypimLR@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.20 (2009-06-14)
[ Sorry, this mutt process was suspended and I didnt notice ... ]

On Mon, Nov 22, George Dunlap wrote:

> Olaf,
> 
> Dang, 8 megs per cpu -- but I guess that's really not so much overhead
> on a big machine; and it's definitely worth getting around the lost
> records issue.  Send the T_INFO_PAGES patch to the list, and see what
> Keir thinks.

The change is as simple as this, for xen-unstable. 4.0 needs to add the
get_order_from_pages() for alloc_xenheap_pages() calls.

A dynamic trace buffer allocation, and also allowing dynamic mask as
cmdline option, should be added. I have added this line to trace.c to
allow an event mask during booting:

integer_param("tbuf_event_mask", tb_event_mask);

Olaf

---
 xen/common/trace.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- xen-unstable.hg-4.1.22415.orig/xen/common/trace.c
+++ xen-unstable.hg-4.1.22415/xen/common/trace.c
@@ -48,7 +48,8 @@ integer_param("tbuf_size", opt_tbuf_size
 
 /* Pointers to the meta-data objects for all system trace buffers */
 static struct t_info *t_info;
-#define T_INFO_PAGES 2  /* Size fixed at 2 pages for now. */
+#define T_INFO_PAGES_ORDER 1  /* Size fixed at 2 pages for now. */
+#define T_INFO_PAGES (1 << T_INFO_PAGES_ORDER)
 #define T_INFO_SIZE ((T_INFO_PAGES)*(PAGE_SIZE))
 static DEFINE_PER_CPU_READ_MOSTLY(struct t_buf *, t_bufs);
 static DEFINE_PER_CPU_READ_MOSTLY(unsigned char *, t_data);

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel