[PATCH v2 1/2] Documentation: sched_ext: fix events sysfs path and show_state example

From: Tao Cui

Date: Thu Aug 13 2026 - 19:01:58 EST


From: Tao Cui <cuitao@xxxxxxxxxx>

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@xxxxxxxxxx>
---
Documentation/scheduler/sched-ext.rst | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/Documentation/scheduler/sched-ext.rst b/Documentation/scheduler/sched-ext.rst
index ad2fff3..0e97fd0 100644
--- a/Documentation/scheduler/sched-ext.rst
+++ b/Documentation/scheduler/sched-ext.rst
@@ -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
--
2.43.0