Re: [PATCH (REPOST)] profiling: initialize prof_cpu_mask from profile_online_cpu()

From: Tetsuo Handa
Date: Fri May 24 2024 - 09:29:49 EST


On 2024/05/05 15:18, Tetsuo Handa wrote:
> On 2024/04/27 15:51, Tetsuo Handa wrote:
>> Can somebody test this patch? I don't know how not using
>> cpu_possible_mask affects expected profile data collection
>> (especially when written to /sys/kernel/profiling interface
>> when some of CPUs are offline).
>
> I confirmed that writing to /sys/kernel/profiling while some of
> /sys/devices/system/cpu/cpu$num/online are 0 will not affect profile data
> collection, for profile_online_cpu() is called (and corresponding bit is set)
> when /sys/devices/system/cpu/cpu$num/online becomes 1. Thus, I consider that
> this patch itself is correct and safe.

Who can take this patch?