From: Andi Kleen <ak@linux.intel.com>
To: Stephane Eranian <eranian@google.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
Arnaldo Carvalho de Melo <acme@redhat.com>,
Peter Zijlstra <peterz@infradead.org>,
"mingo@elte.hu" <mingo@elte.hu>,
"Liang, Kan" <kan.liang@intel.com>, Jiri Olsa <jolsa@redhat.com>
Subject: Re: [PATCH 0/5] perf: add support for capturing skid IP
Date: Thu, 15 Jun 2017 13:02:05 -0700 [thread overview]
Message-ID: <20170615200205.GC4789@tassilo.jf.intel.com> (raw)
In-Reply-To: <CABPqkBTYjTTquE8S4rTqe+Ps7c3BzhX_W7ZJRaeXhYRK97esFQ@mail.gmail.com>
On Thu, Jun 15, 2017 at 12:35:39PM -0700, Stephane Eranian wrote:
> On Thu, Jun 15, 2017 at 10:23 AM, Andi Kleen <ak@linux.intel.com> wrote:
> > On Thu, Jun 15, 2017 at 09:44:07AM -0700, Stephane Eranian wrote:
> >> On Thu, Jun 15, 2017 at 8:10 AM, Andi Kleen <ak@linux.intel.com> wrote:
> >> > On Thu, Jun 15, 2017 at 06:56:24AM -0700, Stephane Eranian wrote:
> >> >> This patchs adds a new sample record type called
> >> >> PERF_SAMPLE_SKID_IP. The goal is to record
> >> >> the unmodified interrupted instruction pointer (IP) as seen by
> >> >> the kernel and reflected in the machine state.
> >> >
> >> > Patches look reasonable for me.
> >> >
> >> > If you only cared about branches it would be more natural to model
> >> > it like a 1 entry LBR. That would make a lot more tooling work
> >> > automatically.
> >> >
> >> You'd still have to modify tooling to present correct column headers.
> >
> > Why? It's from/to?
> >
> Ah, yes you are right, but it is not clear to me how you would specify
> this cleanly with the interface.
> Especially in the case where this could be used for non-branch instructions.
Generally the skid ip is only interesting for instructions that have some kind of
control flow change, or an exception/interrupt.
So if it's interesting the headers would be correct.
Actually it's even correct for non control flow change, because the IP
moves from "FROM" to "TO" ...
-Andi
next prev parent reply other threads:[~2017-06-15 20:02 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-15 13:56 [PATCH 0/5] perf: add support for capturing skid IP Stephane Eranian
2017-06-15 13:56 ` [PATCH 1/5] perf/core: add PERF_SAMPLE_SKID_IP record type Stephane Eranian
2017-06-15 13:56 ` [PATCH 2/5] perf/x86: add PERF_SAMPLE_SKID_IP support for X86 PEBS Stephane Eranian
2017-06-15 15:40 ` Liang, Kan
2017-06-15 16:39 ` Stephane Eranian
2017-06-15 17:18 ` Liang, Kan
2017-06-15 19:19 ` Stephane Eranian
2017-06-15 13:56 ` [PATCH 3/5] perf/tools: add support for PERF_SAMPLE_SKID_IP Stephane Eranian
2017-06-15 13:56 ` [PATCH 4/5] perf/record: add support for sampling skid ip Stephane Eranian
2017-06-15 13:56 ` [PATCH 5/5] perf/script: add support for " Stephane Eranian
2017-06-15 15:10 ` [PATCH 0/5] perf: add support for capturing skid IP Andi Kleen
2017-06-15 16:44 ` Stephane Eranian
2017-06-15 17:23 ` Andi Kleen
2017-06-15 19:35 ` Stephane Eranian
2017-06-15 20:02 ` Andi Kleen [this message]
2017-06-15 20:20 ` Stephane Eranian
2017-06-15 22:28 ` Stephane Eranian
2017-06-15 23:18 ` Andi Kleen
2017-06-16 6:52 ` Stephane Eranian
2017-06-16 16:06 ` Andi Kleen
2017-06-16 17:08 ` Stephane Eranian
2017-06-16 17:12 ` Stephane Eranian
2017-06-16 17:50 ` Andi Kleen
2017-06-16 19:15 ` Stephane Eranian
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=20170615200205.GC4789@tassilo.jf.intel.com \
--to=ak@linux.intel.com \
--cc=acme@redhat.com \
--cc=eranian@google.com \
--cc=jolsa@redhat.com \
--cc=kan.liang@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=peterz@infradead.org \
/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