diff options
| author | Andrea Righi <arighi@nvidia.com> | 2026-03-07 10:56:31 +0100 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-03-07 05:09:23 -1000 |
| commit | 03f5304aad0f90907475437be8052e7e70376319 (patch) | |
| tree | 41715f51eaf16a7a05f70dc58e4b37bf9efbd9da /tools/perf/scripts/python/stackcollapse.py | |
| parent | f68971bcec23c53979531aab0904afec9b8d0b4a (diff) | |
sched_ext: Pass full dequeue flags to ops.quiescent()
ops.quiescent() is invoked with the same deq_flags as ops.dequeue(), so
the BPF scheduler is able to distinguish sleep vs property changes in
both callbacks.
However, dequeue_task_scx() receives deq_flags as an int from the
sched_class interface, so SCX flags above bit 32 (%SCX_DEQ_SCHED_CHANGE)
are truncated. ops_dequeue() reconstructs the full u64 for ops.dequeue(),
but ops.quiescent() is still called with the original int and can never
see %SCX_DEQ_SCHED_CHANGE.
Fix this by constructing the full u64 deq_flags in dequeue_task_scx()
(renaming the int parameter to core_deq_flags) and passing the complete
flags to both ops_dequeue() and ops.quiescent().
Fixes: ebf1ccff79c4 ("sched_ext: Fix ops.dequeue() semantics")
Signed-off-by: Andrea Righi <arighi@nvidia.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
