Documentation: sched_ext: fix events sysfs path and show_state example

The events file is under the scheduler's sysfs kobject
(/sys/kernel/sched_ext/root/events for the root scheduler), not the
nonexistent "<scheduler-name>/events" path. Also add the missing "aborting"
line to the scx_show_state.py example.

Signed-off-by: Tao Cui <cuitao@kylinos.cn>
Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
Tao Cui 2026-08-14 07:01:22 +08:00 committed by Tejun Heo
parent d7832ba1a4
commit 273ce3b12f

View File

@ -93,13 +93,13 @@ scheduler has been loaded):
# cat /sys/kernel/sched_ext/enable_seq
1
Each running scheduler also exposes a per-scheduler ``events`` file under
``/sys/kernel/sched_ext/<scheduler-name>/events`` that tracks diagnostic
counters. Each counter occupies one ``name value`` line:
Each running scheduler exposes an ``events`` file under its sysfs kobject
(``/sys/kernel/sched_ext/root/events`` for the root scheduler) that tracks
diagnostic counters. Each counter occupies one ``name value`` line:
.. code-block:: none
# cat /sys/kernel/sched_ext/simple/events
# cat /sys/kernel/sched_ext/root/events
SCX_EV_SELECT_CPU_FALLBACK 0
SCX_EV_DISPATCH_LOCAL_DSQ_OFFLINE 0
SCX_EV_DISPATCH_KEEP_LAST 123
@ -153,6 +153,7 @@ detailed information:
switching_all : 1
switched_all : 1
enable_state : enabled (2)
aborting : False
bypass_depth : 0
nr_rejected : 0
enable_seq : 1