Re: [PATCH] perf dlfilter: Add dlfilter-show-cycles

From: Arnaldo Carvalho de Melo
Date: Wed Sep 08 2021 - 11:18:42 EST


Em Tue, Sep 07, 2021 at 10:06:03AM +0300, Adrian Hunter escreveu:
> On 7/09/21 5:54 am, Andi Kleen wrote:
> > On 9/6/2021 9:08 AM, Adrian Hunter wrote:
> >> Add a new dlfilter to show cycles.

> >> Cycle counts are accumulated per CPU (or per thread if CPU is not recorded)
> >> from IPC information, and printed together with the change since the last
> >> print, at the start of each line.

> > Thanks! An example how to use it would be nice

> I started looking at making an example and noticed that this approach
> does not work very well because the IPC cycle count only increases when
> the IPC is output which (for CYC accurate mode) is only happens when a
> CYC packet is output that corresponds to the current sample. Seems like
> this needs a re-think, sorry.

Ok, will wait then. And this shows part of the value of this, checking
if it works as expected :-)

- Arnaldo