Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1719568
| From | Andi Kleen <andi@firstfloor.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] perf stat: Add event-interval-print option |
| Date | 2017-08-24 23:00 +0200 |
| Message-ID | <ui7om-2YO-25@gated-at.bofh.it> (permalink) |
| References | <uf87i-cZ-49@gated-at.bofh.it> <ui750-2Q6-15@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Thu, Aug 24, 2017 at 04:39:02PM -0400, Aaron Lindsay wrote:
> Does anyone have any feedback on this patch or the idea in general?
>
> Also, (for our bookkeeping - not trying to rush things) is there any
> chance this will still make it in for the 4.14 merge window, or is it
> 4.15 material at the earliest?
You can already do that with leader sampling through perf record
e.g.
% perf record -e '{cpu/cpu-cycles,period=10000/,branches,branch-misses}:S' ...
% perf script
swapper 0 [005] 3905226.804037: 10210 cpu/cpu-cycles,period=10000/: ffffffff9e87643c intel_idle ([kernel.kallsyms])
swapper 0 [005] 3905226.804037: 345 branches: ffffffff9e87643c intel_idle ([kernel.kallsyms])
swapper 0 [005] 3905226.804037: 58 branch-misses: ffffffff9e87643c intel_idle ([kernel.kallsyms])
:16797 16797 [004] 3905226.804038: 10160 cpu/cpu-cycles,period=10000/: ffffffffc07fdd10 kvm_fetch_guest_virt ([kvm])
:16797 16797 [004] 3905226.804038: 515 branches: ffffffffc07fdd10 kvm_fetch_guest_virt ([kvm])
:16797 16797 [004] 3905226.804038: 19 branch-misses: ffffffffc07fdd10 kvm_fetch_guest_virt ([kvm])
Yes it's a useful technique.
-Andi
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] perf stat: Add event-interval-print option Aaron Lindsay <alindsay@codeaurora.org> - 2017-08-16 17:10 +0200
Re: [PATCH] perf stat: Add event-interval-print option Aaron Lindsay <alindsay@codeaurora.org> - 2017-08-24 22:40 +0200
Re: [PATCH] perf stat: Add event-interval-print option Andi Kleen <andi@firstfloor.org> - 2017-08-24 23:00 +0200
csiph-web