lkml.org 
[lkml]   [2012]   [Apr]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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



\
 
 \ /
  Last update: 2012-04-03 12:51    [W:0.219 / U:8.032 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site