diff options
| author | Cheng-Yang Chou <yphbchou0911@gmail.com> | 2026-06-10 23:26:56 +0800 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-06-24 12:48:32 -1000 |
| commit | 252891d03dfb239fb76a78ab06b0e5a8719e0f86 (patch) | |
| tree | ee8a0ba015dbdf42f213b4dbd13fb106260c7d55 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | da428d572e07bb9dd2d076297ef5700f6483aafd (diff) | |
sched_ext, rcu: Upgrade RCU stall paths to report cpumask of stalled CPUs
scx_rcu_cpu_stall() previously recorded the detector CPU rather than the
stalled one, and the expedited grace period path had no stalled CPU to
report at all.
Thread a cpumask through panic_on_rcu_stall() and scx_rcu_cpu_stall()
to capture all stalled CPUs. Report cpumask_first() as exit_cpu and the
full CPU list in the exit message. Task-only stalls yield exit_cpu = -1.
Store the stall mask in scx_sched rather than scx_exit_info, keeping the
BPF-visible struct unchanged. scx_dump_state() reads sch->stall_cpus
directly and dumps all stalled CPUs first to avoid losing them to
truncation.
Signed-off-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
Reviewed-by: Paul E. McKenney <paulmck@kernel.org>
Reviewed-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
