* xentrace buffering
@ 2007-06-21 20:58 pak333
2007-06-21 23:00 ` Rob Gardner
0 siblings, 1 reply; 2+ messages in thread
From: pak333 @ 2007-06-21 20:58 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 513 bytes --]
Hi,
I am looking at the xentrace code and it looks like the individual cores/cpus write their (trace data) into individual regions of memory and they are all collected by xentrace and processed.
I would like to have one trace buffer for all cores so that I can get an exact sequence in time order of the events that have occurred over the sampling period across cores/cpus.
Is that easily doable>? If so, any pointers can someone send me pointers as to where I should start looking at modifying.
Thanks
-Prabha
[-- Attachment #1.2: Type: text/html, Size: 1452 bytes --]
[-- Attachment #2: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: xentrace buffering
2007-06-21 20:58 xentrace buffering pak333
@ 2007-06-21 23:00 ` Rob Gardner
0 siblings, 0 replies; 2+ messages in thread
From: Rob Gardner @ 2007-06-21 23:00 UTC (permalink / raw)
To: pak333; +Cc: xen-devel
pak333@comcast.net wrote:
> Hi,
>
> I am looking at the xentrace code and it looks like the individual
> cores/cpus write their (trace data) into individual regions of
> memory and they are all collected by xentrace and processed.
>
> I would like to have one trace buffer for all cores so that I *can get
> an exact sequence in time order* of the events that have occurred over
> the sampling period across cores/cpus.
>
> Is that easily doable>? If so, any pointers can someone send me
> pointers as to where I should start looking at modifying.
>
It's doable, but would require some work. I think the reason for having
different buffers for each core is so that the trace code can be really
light weight, since it doesn't have to deal with acquiring a write lock,
etc.
Theoretically, each core's clock should be very close to all the others,
so the timestamp in the trace records should allow a reasonably accurate
reconstruction of the order of events.
Rob
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-06-21 23:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-21 20:58 xentrace buffering pak333
2007-06-21 23:00 ` Rob Gardner
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.