From: Gleb Natapov <gleb@redhat.com>
To: Peter Zijlstra <peterz@infradead.org>
Cc: Robert Richter <robert.richter@amd.com>,
David Ahern <dsahern@gmail.com>,
Arnaldo Carvalho de Melo <acme@ghostprotocols.net>,
linux-kernel@vger.kernel.org, Ingo Molnar <mingo@kernel.org>,
Jiri Olsa <jolsa@redhat.com>, Namhyung Kim <namhyung@kernel.org>,
Frederic Weisbecker <fweisbec@gmail.com>,
Joerg Roedel <joerg.roedel@amd.com>
Subject: Re: [PATCH 08/11] perf tool: precise mode requires exclude_guest
Date: Thu, 26 Jul 2012 11:10:41 +0300 [thread overview]
Message-ID: <20120726081041.GS26120@redhat.com> (raw)
In-Reply-To: <1343290057.26034.81.camel@twins>
On Thu, Jul 26, 2012 at 10:07:37AM +0200, Peter Zijlstra wrote:
> On Thu, 2012-07-26 at 08:50 +0300, Gleb Natapov wrote:
> > On Wed, Jul 25, 2012 at 10:35:46PM +0200, Peter Zijlstra wrote:
> > > On Tue, 2012-07-24 at 18:15 +0200, Robert Richter wrote:
> > > > David,
> > > >
> > > > On 24.07.12 08:20:19, David Ahern wrote:
> > > > > On 7/23/12 12:13 PM, Arnaldo Carvalho de Melo wrote:
> > > > > > Em Fri, Jul 20, 2012 at 05:25:53PM -0600, David Ahern escreveu:
> > > > > >> PEBS cannot be used with guest mode. If user adds :p modifier set
> > > > > >> exclude_guest as well.
> > > > > >
> > > > > > Is this something Intel specific? Or can someone think of an arch where
> > > > > > this limitation wouldn't exist?
> > > > >
> > > > > Good point. So far precise_ip is used by arch/x86 only. I don't have an
> > > > > AMD based server so I don't know if there is a conflict between
> > > > > virtualization and IBS. Added Robert for advice.
> > > >
> > > > thanks for this hint.
> > > >
> > > > On AMD cpus precise_ip maps to IBS, which does not support hardware
> > > > options as perfctrs do. Thus, following attr flags are not supported:
> > > >
> > > > exclude_user, exclude_kernel, exclude_host, exclude_guest
> > > >
> > > > Counting in guest mode is possible with IBS, but not the exclusion of
> > > > a certain mode. If precise_ip counting is enabled on AMD we may not
> > > > set the exclude_guest flag.
> > >
> > > IIRC we have SVM enter/exit hooks in kvm/perf already, we could use
> > > those to implement exclude_guest for IBS.
> > >
> > > Now I've been trying to find the patches that introduced that, but I'm
> > > failing horridly. Gleb, got us a pointer here?
>
> > The commit is 144d31e6, but it introduces hook that is used on VMX only.
> > SVM does not need it to implement guest/host only counters since it
> > has HW support for that in the PMU.
>
> Right, seems that has changed now that we support IBS.
Copying Joerg who wrote guest/host exclude code for AMD.
--
Gleb.
next prev parent reply other threads:[~2012-07-26 8:10 UTC|newest]
Thread overview: 66+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-20 23:25 [PATCH 00/11] perf tool: assorted cleanups and bug fixes David Ahern
2012-07-20 23:25 ` [PATCH 01/11] perf tool: add machine id to modules debug message David Ahern
2012-07-25 19:16 ` [tip:perf/core] perf symbols: Add " tip-bot for David Ahern
2012-07-20 23:25 ` [PATCH 02/11] perf kvm: set name for VM process in guest machine David Ahern
2012-07-25 12:12 ` Jiri Olsa
2012-07-25 19:17 ` [tip:perf/core] perf kvm: Set " tip-bot for David Ahern
2012-07-20 23:25 ` [PATCH 03/11] perf kvm: guest userspace samples should not be lumped with host uspace David Ahern
2012-07-25 12:13 ` Jiri Olsa
2012-07-25 19:18 ` [tip:perf/core] perf kvm: Guest " tip-bot for David Ahern
2012-07-20 23:25 ` [PATCH 04/11] perf kvm: fix bug resolving guest kernel syms - v2 David Ahern
2012-07-25 12:11 ` Jiri Olsa
2012-07-25 19:19 ` [tip:perf/core] perf kvm: Fix bug resolving guest kernel syms tip-bot for David Ahern
2012-07-20 23:25 ` [PATCH 05/11] perf kvm: use strtol for walking guestmount directory David Ahern
2012-07-23 18:09 ` Arnaldo Carvalho de Melo
2012-07-20 23:25 ` [PATCH 06/11] perf kvm: limit repetitive guestmount message to once per directory David Ahern
2012-07-23 18:11 ` Arnaldo Carvalho de Melo
2012-07-25 19:20 ` [tip:perf/core] perf kvm: Limit " tip-bot for David Ahern
2012-07-20 23:25 ` [PATCH 07/11] perf tools: dump exclude_{guest,host}, precise_ip header info too David Ahern
2012-07-25 19:20 ` [tip:perf/core] perf tools: Dump " tip-bot for David Ahern
2012-07-20 23:25 ` [PATCH 08/11] perf tool: precise mode requires exclude_guest David Ahern
2012-07-23 18:13 ` Arnaldo Carvalho de Melo
2012-07-24 14:20 ` David Ahern
2012-07-24 16:15 ` Robert Richter
2012-07-24 17:28 ` David Ahern
2012-07-24 18:03 ` Arnaldo Carvalho de Melo
2012-07-26 5:16 ` David Ahern
2012-07-26 8:08 ` Peter Zijlstra
2012-08-03 13:51 ` Robert Richter
2012-08-15 15:22 ` David Ahern
2012-09-05 15:43 ` David Ahern
2012-09-05 22:07 ` Peter Zijlstra
2012-09-06 17:44 ` Robert Richter
2012-09-06 18:19 ` David Ahern
2012-07-25 20:35 ` Peter Zijlstra
2012-07-26 5:50 ` Gleb Natapov
2012-07-26 8:07 ` Peter Zijlstra
2012-07-26 8:10 ` Gleb Natapov [this message]
2012-07-26 9:07 ` Robert Richter
2012-08-02 16:06 ` David Ahern
2012-09-06 19:02 ` Robert Richter
2012-09-06 19:17 ` David Ahern
2012-09-06 19:56 ` Robert Richter
2012-09-07 16:41 ` [PATCH] perf, ibs: Check syscall attribute flags Robert Richter
2012-09-07 16:50 ` David Ahern
2012-09-07 17:07 ` Robert Richter
2012-09-07 17:11 ` David Ahern
2012-09-07 17:20 ` David Ahern
2012-09-10 13:07 ` Robert Richter
2012-09-10 15:37 ` Arnaldo Carvalho de Melo
2012-09-07 17:25 ` Robert Richter
2012-09-07 16:56 ` Peter Zijlstra
2012-09-07 17:18 ` Robert Richter
2012-09-07 19:11 ` Peter Zijlstra
2012-09-10 9:30 ` [PATCH -v2] " Robert Richter
2012-09-14 6:17 ` [tip:perf/urgent] perf/x86/ibs: " tip-bot for Robert Richter
2012-07-20 23:25 ` [PATCH 09/11] perf top: error handling for counter creation should parallel perf-record David Ahern
2012-07-23 18:15 ` Arnaldo Carvalho de Melo
2012-07-24 14:01 ` David Ahern
2012-07-24 14:39 ` Arnaldo Carvalho de Melo
2012-07-20 23:25 ` [PATCH 10/11] perf tool: give user better message if precise is not supported David Ahern
2012-07-21 10:40 ` Namhyung Kim
2012-07-22 2:28 ` David Ahern
2012-07-20 23:25 ` [PATCH 11/11] perf kvm top: limit guest kernel info message to once David Ahern
2012-07-23 18:17 ` Arnaldo Carvalho de Melo
2012-07-24 14:02 ` David Ahern
2012-07-24 14:40 ` Arnaldo Carvalho de Melo
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=20120726081041.GS26120@redhat.com \
--to=gleb@redhat.com \
--cc=acme@ghostprotocols.net \
--cc=dsahern@gmail.com \
--cc=fweisbec@gmail.com \
--cc=joerg.roedel@amd.com \
--cc=jolsa@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@kernel.org \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
--cc=robert.richter@amd.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;
as well as URLs for NNTP newsgroup(s).