diff options
| author | Tao Cui <cuitao@kylinos.cn> | 2026-11-12 22:49:34 +0800 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-11-21 07:25:30 -1000 |
| commit | 2f7928516314f37d7cb334675656b4412edc8be3 (patch) | |
| tree | 6b0c63c4e0c4bd6bfb0e774d8eda5c78124b9c85 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 8e156b9218f9f1f8b866d8e253145afdb01cf289 (diff) | |
sched/core: Pass ENQUEUE_RQ_SELECTED on initial enqueue
select_task_rq() sets WF_RQ_SELECTED and ttwu_do_activate() maps it to
ENQUEUE_RQ_SELECTED so enqueue_task_scx() knows whether ops.select_cpu()
ran. wake_up_new_task() also calls select_task_rq() but activates the
new task without the flag, so on the fork path ops.enqueue() never sees
SCX_ENQ_CPU_SELECTED and SCX_EV_SELECT_CPU_FALLBACK never counts a
fork-path fallback: a misbehaving select_cpu() leaves no trace in the
counters, and schedulers testing SCX_ENQ_CPU_SELECTED run a redundant
select_cpu_dfl() on tasks select_cpu() already placed.
Set ENQUEUE_RQ_SELECTED on the initial enqueue when select_task_rq() was
called, matching the wakeup path. Only sched_ext consumes the flag.
Fixes: 9b671793c7d9 ("sched_ext, scx_qmap: Add and use SCX_ENQ_CPU_SELECTED")
Cc: stable@vger.kernel.org # v6.12+
Signed-off-by: Tao Cui <cuitao@kylinos.cn>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
