lkml.org 
[lkml]   [2021]   [Mar]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v7] perf annotate: Fix sample events lost in stdio mode
From
Date
Hello, Namhyung  and Arnaldo,

On 2021/3/30 15:26, Namhyung Kim wrote:
> Hi Yang and Arnaldo,
>
> On Sat, Mar 27, 2021 at 11:16 AM Yang Jihong <yangjihong1@huawei.com> wrote:
>> On 2021/3/26 20:06, Arnaldo Carvalho de Melo wrote:
>>> So it seems to be working, what am I missing? Is this strictly non
>>> group related?
>>>
>> Yes, it is non group related.
>> This problem occurs only when different events need to be recorded at
>> the same time, i.e.:
>> perf record -e branch-misses -e branch-instructions -a sleep 1
>>
>> The output results of perf script and perf annotate do not match.
>> Some events are not output in perf annotate.
>
> Yeah I think it's related to sort keys. The code works with a single
> hist_entry for each event and symbol. But the default sort key
> creates multiple entries for different threads and it causes the
> confusion.
>
Yes, After revome zfree from hists__find_annotations, the output of perf
annotate is repeated, which is related to sort keys.

The original problem is that notes->src may correspond to multiple
sample events. Therefore, we cannot simply zfree notes->src to avoid
repeated output.

Arnaldo, is there any problem with this patch? :)

Thanks,
Yang
> Thanks,
> Namhyung
> .
>

\
 
 \ /
  Last update: 2021-03-31 04:19    [W:0.060 / U:1.832 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site