summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorTao Cui <cuitao@kylinos.cn>2026-11-12 22:49:34 +0800
committerTejun Heo <tj@kernel.org>2026-11-21 07:25:30 -1000
commit2f7928516314f37d7cb334675656b4412edc8be3 (patch)
tree6b0c63c4e0c4bd6bfb0e774d8eda5c78124b9c85 /tools/perf/scripts/python/export-to-postgresql.py
parent8e156b9218f9f1f8b866d8e253145afdb01cf289 (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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions