summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2026-03-06 07:58:03 -1000
committerTejun Heo <tj@kernel.org>2026-03-06 07:58:03 -1000
commit88234b075c3fc23d57406e1867523b6aba783ebf (patch)
treea1e8746f4bd223618f86105d3e371a9b4bc58090 /tools/perf/scripts/python/stackcollapse.py
parentebeca1f930eac8f11f815d58eb38fa5d07e7c16e (diff)
sched_ext: Introduce scx_task_sched[_rcu]()
In preparation of multiple scheduler support, add p->scx.sched which points to the scx_sched instance that the task is scheduled by, which is currently always scx_root. Add scx_task_sched[_rcu]() accessors which return the associated scx_sched of the specified task and replace the raw scx_root dereferences with it where applicable. scx_task_on_sched() is also added to test whether a given task is on the specified sched. As scx_root is still the only scheduler, this shouldn't introduce user-visible behavior changes. Signed-off-by: Tejun Heo <tj@kernel.org> Reviewed-by: Andrea Righi <arighi@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions