diff options
| author | Tejun Heo <tj@kernel.org> | 2026-08-12 09:55:33 -1000 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-08-12 09:55:33 -1000 |
| commit | a8dc810968af02190f55cc7574bc87c93156f266 (patch) | |
| tree | 1f9c1521c2b332b33261735a4ce5c12d61681638 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 67f1f4a48c24974e392188602b477741186fa8ce (diff) | |
sched_ext: Convert sub-cap kfuncs to __arena cmask arguments
The sub-cap kfuncs take their cmask arguments as __ign pointers. The values
cross the kfunc boundary as unchecked scalars and scx_cmask_ref_init()
rebases them into the arena by hand.
BPF now translates between BPF and kernel arena addresses for __arena
arguments. Tag the cmask arguments __arena so the kfuncs receive kernel
addresses and scx_cmask_ref_init() loses the hand-rolled conversion. The
optional denied_out keeps its NULL not-provided signal via
__arena__nullable. The mandatory masks use plain __arena.
scx_qmap's call sites drop the (void *)(long) casts since the BPF-side
declarations type the cmask arguments __arena and take arena pointers
directly.
The arena argument address translation is currently implemented only on
x86-64. Schedulers calling these kfuncs load only there for now.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
