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]fix xentrace

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH]fix xentrace
From: Atsushi SAKAI <sakaia@xxxxxxxxxxxxxx>
Date: Fri, 12 May 2006 15:51:58 +0900
Delivery-date: Thu, 11 May 2006 23:52:56 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi, All

 This is a patch for xentrace.c.
This routine checks the trace buffer is initialized or not.
If not, the trace buffer is initialized by using this patch.
This is avoiding following message.
ERROR: Failure to get trace buffer pointer from Xen (22 = Invalid argument)

This routine is based on the specification of 
the trace buffer control function trace.c/tb_control().
The function checks the trace buffer is initialized or not 
in line 183.
If not, this routine stops working.

Of course, this problem is also solved by using tbctl [0|1].
But this problem is already solved by xenmon.py without using tbctl command.

This code is just moved from 
tools/xenmon/xenbaked.c(get_tbuf and misc settings)

I hope these two tools (xenmon.py and xentrace) share the functions.

Signed-off-by: Atsushi SAKAI <sakaia@xxxxxxxxxxxxxx>





Thanks,

A.Sakai 





Attachment: xentrace.patch
Description: Binary data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH]fix xentrace, Atsushi SAKAI <=