lkml.org 
[lkml]   [2020]   [Oct]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 0/4] perf: Fix perf_event_attr::exclusive rotation
On Thu, Oct 29, 2020 at 05:27:19PM +0100, Peter Zijlstra wrote:
> Hi,
>
> Andi recently added exclusive event group support to tools/perf:
>
> https://lkml.kernel.org/r/20201014144255.22699-1-andi@firstfloor.org
>
> and promptly found that they didn't work as specified.
>
> (sorry for the resend, I forgot LKML the first time)

hm, it's too late for me to check ;-) but should I be able to do
this with exclusive event.. running both command at the same time:

$ sudo ./perf stat -e cycles:e -I 1000
# time counts unit events
1.002430650 33,946,849 cycles:e
2.004920725 502,399,986 cycles:e (67.57%)
3.007087631 859,745,048 cycles:e (50.00%)
4.009078254 845,860,723 cycles:e (50.00%)
5.011086104 838,457,275 cycles:e (50.00%)

$ sudo ./perf stat -e cycles:e -I 1000
# time counts unit events
1.001665466 848,973,404 cycles:e (50.01%)
2.003658048 856,505,255 cycles:e (50.00%)
3.005658022 842,737,973 cycles:e (50.00%)
4.007657797 844,800,598 cycles:e (50.00%)

jirka

\
 
 \ /
  Last update: 2020-11-01 00:44    [W:0.101 / U:0.848 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site