[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH]fix xentrace



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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.