Re: [PATCH v4 02/12] perf record: introduce thread specific data array

From: Bayduraev, Alexey V
Date: Fri Apr 09 2021 - 03:07:08 EST


Hi,

On 08.04.2021 17:16, Andi Kleen wrote:
>> + } else {
>> + thread_data[t].tid = syscall(SYS_gettid);
>
> That always fills in the tid of the setup thread instead of the target
> threads?
>

Here we set the tid for 0-thread (for cpu 0), other threads we setup
later in record__thread(), see [PATCH v4 05/12].

Regards,
Alexey