All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rayson Ho <rho@redhat.com>
To: Stefan Hajnoczi <stefanha@gmail.com>, kvm@vger.kernel.org
Cc: systemtap@sources.redhat.com
Subject: Re: Tracing KVM with Systemtap
Date: Mon, 20 Sep 2010 09:19:22 -0400	[thread overview]
Message-ID: <1284988762.2500.13.camel@computer> (raw)
In-Reply-To: <AANLkTimbrDwhHOZxWiWhzKQgt=yq6N7GWkGHtJK3sHSR@mail.gmail.com>

On Wed, 2010-09-08 at 15:08 +0100, Stefan Hajnoczi wrote:
> Hi Rayson,
> For the KVM kernel module Linux trace events are already used.  For
> example, see arch/x86/kvm/trace.h and check out
> /sys/kernel/debug/tracing/events/kvm/*.  There is a set of useful
> static trace points for vm_exit/vm_enter, pio, mmio, etc.
> 
> For the KVM guest there is perf-kvm(1).  This allows perf(1) to look
> up addresses inside the guest (kernel only?).  It produces system-wide
> performance profiles including guests.  Perhaps someone can comment on
> perf-kvm's full feature set and limitations?
> 
> For QEMU userspace Prerna Saxena and I are proposing a static tracing
> patchset.  It abstracts the trace backend (SystemTap, LTTng UST,
> DTrace, etc) from the actual tracepoints so that portability can be
> achieved.  There is a built-in trace backend that has a basic feature
> set but isn't as fancy as SystemTap.  I have implemented LTTng
> Userspace Tracer support, perhaps you'd like to add SystemTap/DTrace
> support with sdt.h?

Thanks Stefan for the reply!

I've looked at the tracing additions in QEMU, including the "Simple
trace backend" (simpletrace.c) and the "tracetool" script, and I think
the SystemTap version can be implemented in a straightforward way.

One thing I was wondering, there seems to be not a lot of probes (except
the examples?) in the QEMU code, are we expected to see more probes in
the next release, or this work will be a long-term project that will not
be added to the official QEMU code in the near future?

(I believe if we can get the tracing framework integrated, then specific
probes can be added on-demand -- but of course that is just my own
opinion :-D )

Thanks,
Rayson




> 
> http://www.mail-archive.com/qemu-devel@nongnu.org/msg41323.html
> http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/tracing_v3
> 
> Stefan
> --
> To unsubscribe from this list: send the line "unsubscribe kvm" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



  reply	other threads:[~2010-09-20 13:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-08 13:20 Tracing KVM with Systemtap Rayson Ho
2010-09-08 14:08 ` Stefan Hajnoczi
2010-09-20 13:19   ` Rayson Ho [this message]
2010-09-20 13:36     ` Stefan Hajnoczi
2010-09-21 12:58       ` Rayson Ho
2010-09-21 13:33         ` Stefan Hajnoczi
2010-09-22 12:11           ` Rayson Ho
2010-09-22 12:33             ` Stefan Hajnoczi
2010-09-22 12:42               ` Rayson Ho
2010-09-22 13:39                 ` Stefan Hajnoczi
     [not found]                   ` <1290019040.2454.3.camel@computer>
     [not found]                     ` <AANLkTi=sf_v_SxLR1vNB7JwqU-KUcM2QVmYLn9MJyds4@mail.gmail.com>
     [not found]                       ` <1290626577.7673.2.camel@computer>
     [not found]                         ` <AANLkTikta_R78LFf9_=OH1U3+HXSz0xepOWmYR8QV=qD@mail.gmail.com>
2011-02-09 19:27                           ` [Qemu-devel] QEMU network probes Rayson Ho
2011-02-10 11:12                             ` Stefan Hajnoczi

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=1284988762.2500.13.camel@computer \
    --to=rho@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=stefanha@gmail.com \
    --cc=systemtap@sources.redhat.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.