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

Re: [Xen-tools] hi, all. I have a question about xentrace?



> as we all known, xentrace is a lightweight event logging facility present
> in Xen. XenTrace
> can log events at arbitrary control points in the hypervisor.
> my question is that which API or interface does Xen provide to xentrace?
> what is the principle of xentrace? how does the event logged into trace
> buffer?
>
> I had read xentrace.c file; but found no result.

You also need to read xen/common/trace.c and xen/include/xen/trace.h and 
xen/include/public/trace.h

Tracepoints are written into the Xen source code and compiled in.  These use 
the macros in xen/include/xen/trace.h - these cause data to be queued into 
per-CPU buffers that are shared with domain 0.

xentrace.c contains the code for mapping these buffers and reading their 
contents, which are then dumped out to a file.  xentrace_format parses this 
data and prints it out in a readable form.

Cheers,
Mark

-- 
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!

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


 


Rackspace

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