]> git.ipfire.org Git - thirdparty/linux.git/commit
sched_ext: Fix missing SCX_EV_SUB_BYPASS_DISPATCH aggregation in scx_read_events()
authorCheng-Yang Chou <yphbchou0911@gmail.com>
Thu, 26 Mar 2026 01:48:27 +0000 (09:48 +0800)
committerTejun Heo <tj@kernel.org>
Thu, 26 Mar 2026 02:32:01 +0000 (16:32 -1000)
commit3eb8f022919187e2fe786f677569d2bd5a0b1915
tree14ddf06f838af16c2f1d236ba46588b55a21d385
parent3d6379196d5fc9698b683ec40ffd9452d2183c4a
sched_ext: Fix missing SCX_EV_SUB_BYPASS_DISPATCH aggregation in scx_read_events()

025b1bd41965 introduced SCX_EV_SUB_BYPASS_DISPATCH to track scheduling
of bypassed descendant tasks, and correctly increments it per-CPU and
displays it in sysfs and dump output. However, scx_read_events() which
aggregates per-CPU counters into a summary was not updated to include
this event, causing it to always read as zero in sysfs, in debug dumps,
and via the scx_bpf_events() kfunc.

Add the missing scx_agg_event() call for SCX_EV_SUB_BYPASS_DISPATCH.

Fixes: 025b1bd41965 ("sched_ext: Implement hierarchical bypass mode")
Signed-off-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/sched/ext.c