summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2026-08-14 18:26:37 -1000
committerTejun Heo <tj@kernel.org>2026-08-14 23:47:39 -1000
commitb27dfc7d8db91a24c772545e9f32739027ab49c9 (patch)
treee0398b6b447815fe4c8f58281b3e97d999f55cc1 /tools/perf/scripts/python/event_analyzing_sample.py
parentd44093323131a42a85184315bb9b6da4813cc39b (diff)
sched_ext: Make scx_bpf_events() read the calling scheduler's counters
scx_bpf_events() always reads the root scheduler's event counters, so a sub-scheduler program querying its own events silently gets the root's instead and has no BPF-visible way to read its own (the per-scheduler sysfs "events" file is the only interface). Resolve the scheduler from the calling program with scx_prog_sched(). Unassociated programs follow the usual scx_prog_sched() resolution: the root scheduler under a pre-sub-attach compat root and zeroed counters otherwise. Also fix up the malformed comment into proper kerneldoc. Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions