linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Robert Richter <robert.richter@amd.com>
To: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>,
	Stephane Eranian <eranian@google.com>,
	Arnaldo Carvalho de Melo <acme@redhat.com>,
	LKML <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH 00/12] perf/x86-ibs: Precise event sampling with IBS for AMD CPUs
Date: Tue, 3 Apr 2012 12:48:24 +0200	[thread overview]
Message-ID: <20120403104824.GI16322@erda.amd.com> (raw)
In-Reply-To: <20120402191123.GA17124@gmail.com>

On 02.04.12 21:11:23, Ingo Molnar wrote:
> Mind posting some perf annotate output of any well-known kernel 
> function showing skiddy '-e cpu-cycles' output versus skid-less 
> '-e cpu-cycles:p' output?

This is what I got for _raw_spin_lock_irqsave (first perfctr, second
ibs).

-Robert


 # perf annotate -k vmlinux -s _raw_spin_lock_irqsave -i perf-r076.data | cat
  Percent |	Source code & Disassembly of vmlinux
 ------------------------------------------------
          :
          :
          :
          :	Disassembly of section .text:
          :
          :	ffffffff8145036a <_raw_spin_lock_irqsave>:
     0.00 :	ffffffff8145036a:       push   %rbp
     0.00 :	ffffffff8145036b:       mov    %rsp,%rbp
     0.00 :	ffffffff8145036e:       callq  ffffffff81456c40 <mcount>
     0.00 :	ffffffff81450373:       pushfq 
     0.00 :	ffffffff81450374:       pop    %rax
     0.00 :	ffffffff81450375:       cli    
     0.00 :	ffffffff81450376:       mov    $0x100,%edx
     0.00 :	ffffffff8145037b:       lock xadd %dx,(%rdi)
     0.00 :	ffffffff81450380:       mov    %dl,%cl
     0.00 :	ffffffff81450382:       shr    $0x8,%dx
    10.34 :	ffffffff81450386:       cmp    %dl,%cl
     0.00 :	ffffffff81450388:       je     ffffffff81450390 <_raw_spin_lock_irqsave+0x26>
    10.34 :	ffffffff8145038a:       pause  
    65.52 :	ffffffff8145038c:       mov    (%rdi),%cl
    13.79 :	ffffffff8145038e:       jmp    ffffffff81450386 <_raw_spin_lock_irqsave+0x1c>
     0.00 :	ffffffff81450390:       leaveq 
     0.00 :	ffffffff81450391:       retq   
 # perf annotate -k vmlinux -s _raw_spin_lock_irqsave -i perf-r076pp.data | cat
  Percent | Source code & Disassembly of vmlinux
 ------------------------------------------------
          :
          :
          :
          :	Disassembly of section .text:
          :
          :	ffffffff8145036a <_raw_spin_lock_irqsave>:
     0.00 :	ffffffff8145036a:       push   %rbp
     0.00 :	ffffffff8145036b:       mov    %rsp,%rbp
     0.00 :	ffffffff8145036e:       callq  ffffffff81456c40 <mcount>
     0.00 :	ffffffff81450373:       pushfq 
     0.00 :	ffffffff81450374:       pop    %rax
     0.00 :	ffffffff81450375:       cli    
     0.00 :	ffffffff81450376:       mov    $0x100,%edx
     0.00 :	ffffffff8145037b:       lock xadd %dx,(%rdi)
     2.78 :	ffffffff81450380:       mov    %dl,%cl
     0.00 :	ffffffff81450382:       shr    $0x8,%dx
     2.78 :	ffffffff81450386:       cmp    %dl,%cl
    11.11 :	ffffffff81450388:       je     ffffffff81450390 <_raw_spin_lock_irqsave+0x26>
    72.22 :	ffffffff8145038a:       pause  
     2.78 :	ffffffff8145038c:       mov    (%rdi),%cl
     8.33 :	ffffffff8145038e:       jmp    ffffffff81450386 <_raw_spin_lock_irqsave+0x1c>
     0.00 :	ffffffff81450390:       leaveq 
     0.00 :	ffffffff81450391:       retq   

-- 
Advanced Micro Devices, Inc.
Operating System Research Center


      reply	other threads:[~2012-04-03 10:48 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-02 18:19 [PATCH 00/12] perf/x86-ibs: Precise event sampling with IBS for AMD CPUs Robert Richter
2012-04-02 18:19 ` [PATCH 01/12] perf/x86-ibs: Fix update of period Robert Richter
2012-05-09 14:29   ` [tip:perf/core] " tip-bot for Robert Richter
2012-04-02 18:19 ` [PATCH 02/12] perf: Pass last sampling period to perf_sample_data_init() Robert Richter
2012-05-09 14:30   ` [tip:perf/core] " tip-bot for Robert Richter
2012-04-02 18:19 ` [PATCH 03/12] perf/x86-ibs: Enable ibs op micro-ops counting mode Robert Richter
2012-05-09 14:31   ` [tip:perf/core] " tip-bot for Robert Richter
2012-04-02 18:19 ` [PATCH 04/12] perf/x86-ibs: Fix frequency profiling Robert Richter
2012-05-09 14:32   ` [tip:perf/core] " tip-bot for Robert Richter
2012-04-02 18:19 ` [PATCH 05/12] perf/x86-ibs: Take instruction pointer from ibs sample Robert Richter
2012-05-09 14:33   ` [tip:perf/core] " tip-bot for Robert Richter
2012-04-02 18:19 ` [PATCH 06/12] perf/x86-ibs: Precise event sampling with IBS for AMD CPUs Robert Richter
2012-04-14 10:21   ` Peter Zijlstra
2012-04-23  9:56     ` Robert Richter
2012-04-27 12:34       ` Robert Richter
2012-04-27 12:39         ` Stephane Eranian
2012-04-27 12:54           ` Robert Richter
2012-04-27 13:10             ` Stephane Eranian
2012-04-27 15:18               ` Robert Richter
2012-04-27 15:30                 ` Peter Zijlstra
2012-04-27 15:57                   ` Stephane Eranian
2012-04-27 15:30             ` Peter Zijlstra
2012-04-27 16:09               ` Robert Richter
2012-04-27 16:21                 ` Peter Zijlstra
2012-04-27 16:23                   ` Stephane Eranian
2012-04-14 10:22   ` Peter Zijlstra
2012-04-23  8:41     ` Robert Richter
2012-04-23 10:36       ` Peter Zijlstra
2012-04-14 10:24   ` Peter Zijlstra
2012-04-23 10:08     ` Robert Richter
2012-05-02 10:33   ` [PATCH v2] " Robert Richter
2012-05-02 11:14     ` Peter Zijlstra
2012-05-04 17:53       ` Peter Zijlstra
2012-05-09 14:34     ` [tip:perf/core] " tip-bot for Robert Richter
2012-04-02 18:19 ` [PATCH 07/12] perf/x86-ibs: Rename some variables Robert Richter
2012-05-09 14:34   ` [tip:perf/core] " tip-bot for Robert Richter
2012-04-02 18:19 ` [PATCH 08/12] perf/x86-ibs: Trigger overflow if remaining period is too small Robert Richter
2012-05-09 14:35   ` [tip:perf/core] " tip-bot for Robert Richter
2012-04-02 18:19 ` [PATCH 09/12] perf/x86-ibs: Extend hw period that triggers overflow Robert Richter
2012-05-09 14:36   ` [tip:perf/core] " tip-bot for Robert Richter
2012-04-02 18:19 ` [PATCH 10/12] perf/x86-ibs: Implement workaround for IBS erratum #420 Robert Richter
2012-05-09 14:37   ` [tip:perf/core] " tip-bot for Robert Richter
2012-04-02 18:19 ` [PATCH 11/12] perf/x86-ibs: Catch spurious interrupts after stopping ibs Robert Richter
2012-05-09 14:38   ` [tip:perf/core] perf/x86-ibs: Catch spurious interrupts after stopping IBS tip-bot for Robert Richter
2012-04-02 18:19 ` [PATCH 12/12] perf/x86-ibs: Fix usage of IBS op current count Robert Richter
2012-05-09 14:39   ` [tip:perf/core] " tip-bot for Robert Richter
2012-04-02 19:11 ` [PATCH 00/12] perf/x86-ibs: Precise event sampling with IBS for AMD CPUs Ingo Molnar
2012-04-03 10:48   ` Robert Richter [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=20120403104824.GI16322@erda.amd.com \
    --to=robert.richter@amd.com \
    --cc=acme@redhat.com \
    --cc=eranian@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --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;
as well as URLs for NNTP newsgroup(s).