lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 3 Apr 2012 12:48:24 +0200
From:	Robert Richter <robert.richter@....com>
To:	Ingo Molnar <mingo@...nel.org>
CC:	Peter Zijlstra <peterz@...radead.org>,
	Stephane Eranian <eranian@...gle.com>,
	Arnaldo Carvalho de Melo <acme@...hat.com>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 00/12] perf/x86-ibs: Precise event sampling with IBS for
 AMD CPUs

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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ