All of lore.kernel.org
 help / color / mirror / Atom feed
From: George Dunlap <george.dunlap@eu.citrix.com>
To: Tej <bewith.tej@gmail.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Keir Fraser <Keir.Fraser@eu.citrix.com>
Subject: Re: [RFC][PATCH] Hypervisor profiling using GCOV
Date: Thu, 19 Feb 2009 14:53:17 +0000	[thread overview]
Message-ID: <499D725D.40204@eu.citrix.com> (raw)
In-Reply-To: <f1c9d250902180858h2dfb1f38x4118a7c77bc1104a@mail.gmail.com>

Tej wrote:
>> Does it get us significantly more than the existing xentrace and xenoprofile
>> tools? Especially the latter, which already does program-counter tracing and
>> generation of stats from that, via the oprofile tool.
>>     
>
> thanks for our feedback
> i agree xenoprofile is advanced proffiling tool in xen since ages, but
> GCOV could be useful tool to naive tester/programmer on XEN who really
> don't understand xenoprofile stats....
>   
Don't undersell gcov; its purpose is slightly different from either 
xentrace or xenoprofile.  Xentrace can be used to get information about 
what paths or reasons caused vmexits (as well as just seeing specific 
patterns that happen).  xenoprofile is a relatively low-overhead way of 
just profiling (which unfortuantely doesn't work properly in 32-on-64 
mode ATM).   gcov's main purpose is to tell you code coverage; profiling 
is just a side-effect.

I looked at the LTP page about lcov, and it looks like it was pretty 
useful for them.  It has graphical output with the number of times / 
percentage a given path was taken.  It probably is worth porting to Xen 
for the same reason -- to see how well given paths in Xen actually get 
exercised.
> e.g If i start with any hypervisor subsystem (scheduler), i will run
> xm test suite for scheduler and see  what all code is getting affected
> over a  period of time and proceed with it...
>   
It sounds like the main problem with xenoprofile is that it's hard to 
set up and use ATM: it could use some attention to the code, and some 
well-worded HOWTOs.  The fact that 32-on-64 doesn't work properly 
(truncates the long EIPs) doesn't help. :-)

So I think that it probably would be useful.  Unfortunately, I don't 
have time in the near future to look at either of these (new "xcov" 
functionality, or fixing xenoprofile).  Gianluca's been doing some 
interesting work with testing.  I'll ask him if he's interested in 
looking at it.

Thanks for your work though, Tej!

 -George

  reply	other threads:[~2009-02-19 14:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <f1c9d250902172003u22ec4977u852a87ecc4f6a930@mail.gmail.com>
     [not found] ` <C5C17211.2D71%keir.fraser@eu.citrix.com>
2009-02-18 16:58   ` [RFC][PATCH] Hypervisor profiling using GCOV Tej
2009-02-19 14:53     ` George Dunlap [this message]
2009-02-19 16:04       ` Tej
2009-02-16 16:36 Tej

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=499D725D.40204@eu.citrix.com \
    --to=george.dunlap@eu.citrix.com \
    --cc=Keir.Fraser@eu.citrix.com \
    --cc=bewith.tej@gmail.com \
    --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.