linux-perf-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Brendan Gregg <brendan.d.gregg@gmail.com>
To: David Ahern <dsahern@gmail.com>
Cc: Andi Kleen <andi@firstfloor.org>,
	"linux-perf-use." <linux-perf-users@vger.kernel.org>
Subject: Re: Weird instruction profiling
Date: Fri, 20 Feb 2015 11:04:59 -0800	[thread overview]
Message-ID: <CAE40pddr1g8Rukr97n+CPH13FAy6atzYvhOW7pcftJV_L2sZVg@mail.gmail.com> (raw)
In-Reply-To: <54E52451.4030303@gmail.com>

On Wed, Feb 18, 2015 at 3:46 PM, David Ahern <dsahern@gmail.com> wrote:
> On 2/18/15 4:38 PM, Andi Kleen wrote:
>>
>> On Wed, Feb 18, 2015 at 04:33:31PM -0700, David Ahern wrote:
>>>
>>> On 2/18/15 11:30 AM, Andi Kleen wrote:
>>>
>>>>> I think Andi mentioned this to me last year -- that instruction
>>>>> profiling was no longer reliable.
>>>>
>>>>
>>>> It never was.
>>>
>>>
>>> Why is that? What about profiling with other hardware counters?
>>
>>
>> Practically all profiling has skid of some form.
>
>
> ok, so you meant that only in the context of skid meaning the hit
> instruction is off a few (ie., squint backwards at the annotate output).
>

Thanks Andi and David,

There's skid, but I was noticing what I thought was a different
artifact in the profile: where only every 4th instruction is seen.
Wouldn't this effect be more due to the IP pointing to the next
instruction while a group of 4 are executed in parallel? Then there's
skid on top of that....

Brendan

      reply	other threads:[~2015-02-20 19:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-18  9:57 Weird instruction profiling Brendan Gregg
2015-02-18 18:30 ` Andi Kleen
2015-02-18 23:33   ` David Ahern
2015-02-18 23:38     ` Andi Kleen
2015-02-18 23:46       ` David Ahern
2015-02-20 19:04         ` Brendan Gregg [this message]

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=CAE40pddr1g8Rukr97n+CPH13FAy6atzYvhOW7pcftJV_L2sZVg@mail.gmail.com \
    --to=brendan.d.gregg@gmail.com \
    --cc=andi@firstfloor.org \
    --cc=dsahern@gmail.com \
    --cc=linux-perf-users@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).