diff options
| author | Cheng-Yang Chou <yphbchou0911@gmail.com> | 2026-08-11 23:35:01 +0800 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-08-14 12:24:24 -1000 |
| commit | 0e3a6e977c14b87861e5295ceff0b5141f017246 (patch) | |
| tree | 92d4f72ec5105d5ce4ed1d51bc06ce1cfb3800be /tools/perf/scripts/python/flamegraph.py | |
| parent | 62f3d531e41a7e6e0dc8d37ea377c50488decb56 (diff) | |
selftests/sched_ext: Make numa idle validation race-free
A CPU returned by scx_bpf_pick_idle_cpu_node() can be re-advertised as
idle by an idle-to-idle re-pick before the BPF program validates the
selection, and the scx_bpf_pick_any_cpu_node() fallback doesn't claim
the CPU at all. Asserting that the picked CPU is absent from the node's
idle cpumask is therefore inherently racy.
Follow the same approach as commit 12da4723b679 ("selftests/sched_ext:
Make allowed_cpus idle validation race-free") and validate a stable
local invariant instead: a CPU executing ops.select_cpu() in a non-idle
scheduling context must not be advertised as idle in its node's idle
cpumask. Keep the node-membership validation of the picked CPU, which
is stable.
Signed-off-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions
