All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rob Gardner <rob.gardner@hp.com>
To: pak333@comcast.net
Cc: xen-devel@lists.xensource.com
Subject: Re: xentrace buffering
Date: Thu, 21 Jun 2007 17:00:55 -0600	[thread overview]
Message-ID: <467B0327.1020001@hp.com> (raw)
In-Reply-To: <062120072058.2626.467AE67E0009D23000000A422207021633CCCCCC050E9F@comcast.net>

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

      reply	other threads:[~2007-06-21 23:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-21 20:58 xentrace buffering pak333
2007-06-21 23:00 ` Rob Gardner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=467B0327.1020001@hp.com \
    --to=rob.gardner@hp.com \
    --cc=pak333@comcast.net \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.