Re: [PATCH v4] perf/core: Fix sampling period inconsistency across CPU migration
From: Peter Zijlstra
Date: Mon May 04 2026 - 04:09:19 EST
On Wed, Apr 29, 2026 at 09:51:34AM +0000, Minwoo Ahn wrote:
>
> When per-task software events are sampled, period_left is not
> managed consistently when task migration happens. The perf_event
> may observe a different hw_perf_event::period_left on the new CPU,
> breaking the sampling periodicity. Even if a task was near its
> sampling point, it would use a stale period_left after migration.
How? This is just vague words, not actually saying anything of
substance.
> Introduce struct perf_task_context as a per-task container to
How can you propose a solution to a non-defined problem?