Re: [PATCH] perf: ignore exited thread when synthesize thread map

From: cruzzhao
Date: Tue Nov 28 2023 - 01:24:59 EST




在 2023/11/23 上午5:05, Namhyung Kim 写道:
> Hello,
>
> On Tue, Nov 21, 2023 at 6:22 PM Cruz Zhao <CruzZhao@xxxxxxxxxxxxxxxxx> wrote:
>>
>> When synthesize thread map, some threads in thread map may have
>> already exited, so that __event__synthesize_thread() returns -1
>> and the synthesis breaks. However, It will not have any effect
>> if we just ignore the exited thread. So just ignore it and continue.
>
> Looks ok. But I guess you want to do the same for the leader
> thread below as well.
>
> Thanks,
> Namhyung
>

With my testcase, no error is returned even if we don't do the same for
the leader thread blow. Well, I'll check whether the logic is still
correct if we do so.

Many thanks for reviewing.

Best,
Cruz Zhao