summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2026-07-23 15:07:56 -1000
committerTejun Heo <tj@kernel.org>2026-07-25 10:33:04 -1000
commit7947442047cff1d296ab615b8c6ddbc7c9b7bf21 (patch)
tree8a703a019728877d1dfc4dd279225abe1ce0f828 /tools/perf/scripts/python/export-to-postgresql.py
parent3a21e34eb2588e135190cf5c48e64397bc18d0b5 (diff)
sched_ext: Add scx_cgroup_sched() for cgrp->scx_sched reads
cgrp->scx_sched is __rcu and published with rcu_assign_pointer() but every reader loads it with a plain access, so sparse flags all of them. The reads are lock-protected: enable/disable paths rewrite the field under all of scx_enable_mutex, scx_fork_rwsem and cgroup_mutex, and cgroup creation inherits the parent's sched under cgroup_mutex before the new cgroup is reachable, so holding any one of the three locks makes the read stable. Add scx_cgroup_sched() which states the protection with rcu_dereference_check() and convert the readers. No functional changes. 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