public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Ingo Molnar <mingo@elte.hu>
To: "Roedel, Joerg" <Joerg.Roedel@amd.com>
Cc: "yanmin_zhang@linux.intel.com" <yanmin_zhang@linux.intel.com>,
	Peter Zijlstra <a.p.zijlstra@chello.nl>,
	Paul Mackerras <paulus@samba.org>,
	Arnaldo Carvalho de Melo <acme@ghostprotocols.net>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: [RFC][PATCH 0/3] perf support for amd guest/host-only bits
Date: Tue, 10 May 2011 22:41:49 +0200	[thread overview]
Message-ID: <20110510204149.GE21903@elte.hu> (raw)
In-Reply-To: <20110510155024.GG30996@amd.com>


* Roedel, Joerg <Joerg.Roedel@amd.com> wrote:

> On Tue, May 10, 2011 at 11:21:32AM -0400, Ingo Molnar wrote:
> > 
> > * Joerg Roedel <joerg.roedel@amd.com> wrote:
> > 
> > > So any feedback is greatly appreciated :-)
> > 
> > it's nice to see this hw feature utilized :)
> 
> Yeah, I planned to do this for some time now and finally found the time
> to do it :)
> 
> > 
> > > Diffstat:
> > > 
> > >  arch/x86/include/asm/perf_event.h    |    3 +++
> > >  arch/x86/kernel/cpu/perf_event_amd.c |    6 ++++++
> > >  include/linux/perf_event.h           |    5 ++++-
> > >  kernel/perf_event.c                  |    4 ++++
> > >  tools/perf/util/parse-events.c       |   10 +++++++++-
> > >  5 files changed, 26 insertions(+), 2 deletions(-)
> > 
> > I see you have not touched tools/perf/builtin-kvm.c - how does this feature 
> > integrate with the features of 'perf kvm'? (are you using perf kvm by any 
> > chance?)
> 
> builtin-kvm looks like a wrapper for other perf-cmds which just sets up
> some additional state to tell the sub-cmds that guest-symbols need to be
> resolved and so on.
>
> Implementing this into the place where the other exclude-bits get set (which 
> is in generic code) seemed like a good idea to me. Touching builtin-kvm was 
> unnecessary for this.

ok, then let me put it in another way:

'perf kvm' is the tool that is making Linux instrumentation friendlier to KVM 
developers. Can you think of ways to utilize this new feature there?

For example a new 'perf kvm stat' feature could pass the exclusion bits to perf 
stat automatically. 'perf kvm record' could record on the guest only by 
default.

Things like that.

Thanks,

	Ingo

  reply	other threads:[~2011-05-10 20:42 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-10 14:35 [RFC][PATCH 0/3] perf support for amd guest/host-only bits Joerg Roedel
2011-05-10 14:35 ` [PATCH 1/3] perf, core: Introduce attrs to count in either host or guest mode Joerg Roedel
2011-05-10 14:45   ` Peter Zijlstra
2011-05-10 14:59     ` Roedel, Joerg
2011-05-10 15:18       ` Peter Zijlstra
2011-05-10 15:38         ` Roedel, Joerg
2011-05-10 16:07           ` Peter Zijlstra
2011-05-10 16:25             ` Roedel, Joerg
2011-05-11 11:44   ` Avi Kivity
2011-05-11 11:45     ` Avi Kivity
2011-05-11 13:49       ` Peter Zijlstra
2011-05-11 13:52         ` Avi Kivity
2011-05-11 14:02           ` Ingo Molnar
2011-05-10 14:35 ` [PATCH 2/3] perf, x86: Use GO/HO bits in perf-ctr Joerg Roedel
2011-05-10 14:48   ` Peter Zijlstra
2011-05-10 15:04     ` Roedel, Joerg
2011-05-11 12:58       ` Avi Kivity
2011-05-12  9:21         ` Joerg Roedel
2011-05-10 14:35 ` [PATCH 3/3] perf, tools: Add support for guest/host-only profiling Joerg Roedel
2011-05-10 14:50   ` Peter Zijlstra
2011-05-10 15:08     ` Roedel, Joerg
2011-05-10 15:25       ` Peter Zijlstra
2011-05-10 15:46         ` Roedel, Joerg
2011-05-10 16:09           ` Peter Zijlstra
2011-05-10 15:21 ` [RFC][PATCH 0/3] perf support for amd guest/host-only bits Ingo Molnar
2011-05-10 15:50   ` Roedel, Joerg
2011-05-10 20:41     ` Ingo Molnar [this message]
2011-05-11  8:57       ` Joerg Roedel

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=20110510204149.GE21903@elte.hu \
    --to=mingo@elte.hu \
    --cc=Joerg.Roedel@amd.com \
    --cc=a.p.zijlstra@chello.nl \
    --cc=acme@ghostprotocols.net \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulus@samba.org \
    --cc=yanmin_zhang@linux.intel.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