public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Rayson Ho <rho@redhat.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: kvm@vger.kernel.org, systemtap@sources.redhat.com,
	Prerna Saxena <prerna@linux.vnet.ibm.com>
Subject: Re: Tracing KVM with Systemtap
Date: Wed, 22 Sep 2010 08:11:30 -0400	[thread overview]
Message-ID: <1285157490.6879.23.camel@computer> (raw)
In-Reply-To: <AANLkTimyTLoBt8mCdEDJWmCFycKUW8DSN+K=z39LYF_T@mail.gmail.com>

On Tue, 2010-09-21 at 14:33 +0100, Stefan Hajnoczi wrote:
> > net.c qemu_deliver_packet(), etc - network statistics
> 
> Yes.

Further digging into the code in the net/ directory, there are more
functions that should be traced/probed - e.g. a lot of the net_socket*
routines.

Given that SystemTap, LTTng, and DTrace have extremely close to zero
overhead at each probe point, adding them into code can provide users
different performance resolutions into the networking code.


> > <CPU Arch>/op_helper.c global_cpu_lock(), tlb_fill() - lock & unlock,
> > and TLB refill statistics
> 
> These are not relevant to KVM, they are only used when running with
> KVM disabled (TCG mode).

Hmm, while my main objective is to add probes for KVM, if they are
useful to QEMU, I may as well add them to my patch.


> > balloon.c, hw/virtio-balloon.c - ballooning information.
> 
> Prerna added a balloon event which is in qemu.git trace-events.  Does
> that one do what you need?

Thanks for the info.


> > I will see what other probes are useful for the end users. Also, are
> > there developer documentations for KVM? (I googled but found a lot of
> > presentations about KVM but not a lot of info about the internals.)
> 
> Not really.  I suggest grabbing the source and following vl.c:main()
> to the main KVM execution code.

I was looking for the hardware interfacing code earlier this morning --
QEMU has the hardware specific directories (e.g. target-i386/ ,
target-ppc/ ), and I was trying to understand the execution environment
when the host and guest are running on the same architecture.

I believe cpu_gen_code() and other related functions are what I should
dig into...

Rayson




> 
> 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-22 12:11 UTC|newest]

Thread overview: 10+ 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
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 [this message]
2010-09-22 12:33             ` Stefan Hajnoczi
2010-09-22 12:42               ` Rayson Ho
2010-09-22 13:39                 ` 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=1285157490.6879.23.camel@computer \
    --to=rho@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=prerna@linux.vnet.ibm.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox