From 273ce3b12fec8d5eb6ca7d977913b36c4a754b27 Mon Sep 17 00:00:00 2001 From: Tao Cui Date: Fri, 14 Aug 2026 07:01:22 +0800 Subject: [PATCH] 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 "/events" path. Also add the missing "aborting" line to the scx_show_state.py example. Signed-off-by: Tao Cui Signed-off-by: Tejun Heo --- 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 ad2fff3c0593..0e97fd019994 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//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