* [PATCH v2 0/2] sched_ext: minor doc and comment fixes
@ 2026-08-13 23:01 Tao Cui
2026-08-13 23:01 ` [PATCH v2 1/2] Documentation: sched_ext: fix events sysfs path and show_state example Tao Cui
2026-08-13 23:01 ` [PATCH v2 2/2] sched_ext: fix stale references in doc comments Tao Cui
0 siblings, 2 replies; 3+ messages in thread
From: Tao Cui @ 2026-08-13 23:01 UTC (permalink / raw)
To: tj, corbet
Cc: rdunlap, skhan, arighi, yphbchou0911, jpiecuch, ihor.solodrai,
suzhidao, luoliang, linux-doc, linux-kernel, cui.tao, Tao Cui
From: Tao Cui <cuitao@kylinos.cn>
Two small doc and comment fixes noticed while
reading the code. No functional changes.
Changes in v2 (per Tejun's review):
- show_state example: aborting prints as False (drgn bools)
- inlines.h: use scx_bpf_sub_dispatch(), not scx_bpf_dsq_insert()
- internal.h: name %SCX_DEQ_SCHED_CHANGE instead of dropping the
never-defined %SCX_DEQ_SAVE
- internal.h: reword @name to cover sub-schedulers
- rebase onto sched_ext/for-7.3
Tao Cui (2):
Documentation: sched_ext: fix events sysfs path and show_state example
sched_ext: fix stale references in doc comments
Documentation/scheduler/sched-ext.rst | 9 +++++----
kernel/sched/ext/inlines.h | 2 +-
kernel/sched/ext/internal.h | 7 ++++---
3 files changed, 10 insertions(+), 8 deletions(-)
--
2.43.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH v2 1/2] Documentation: sched_ext: fix events sysfs path and show_state example
2026-08-13 23:01 [PATCH v2 0/2] sched_ext: minor doc and comment fixes Tao Cui
@ 2026-08-13 23:01 ` Tao Cui
2026-08-13 23:01 ` [PATCH v2 2/2] sched_ext: fix stale references in doc comments Tao Cui
1 sibling, 0 replies; 3+ messages in thread
From: Tao Cui @ 2026-08-13 23:01 UTC (permalink / raw)
To: tj, corbet
Cc: rdunlap, skhan, arighi, yphbchou0911, jpiecuch, ihor.solodrai,
suzhidao, luoliang, linux-doc, linux-kernel, cui.tao, Tao Cui
From: Tao Cui <cuitao@kylinos.cn>
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>
---
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
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH v2 2/2] sched_ext: fix stale references in doc comments
2026-08-13 23:01 [PATCH v2 0/2] sched_ext: minor doc and comment fixes Tao Cui
2026-08-13 23:01 ` [PATCH v2 1/2] Documentation: sched_ext: fix events sysfs path and show_state example Tao Cui
@ 2026-08-13 23:01 ` Tao Cui
1 sibling, 0 replies; 3+ messages in thread
From: Tao Cui @ 2026-08-13 23:01 UTC (permalink / raw)
To: tj, corbet
Cc: rdunlap, skhan, arighi, yphbchou0911, jpiecuch, ihor.solodrai,
suzhidao, luoliang, linux-doc, linux-kernel, cui.tao, Tao Cui
From: Tao Cui <cuitao@kylinos.cn>
- inlines.h: scx_bpf_dispatch() doesn't exist; the comment means
scx_bpf_sub_dispatch()
- internal.h: name %SCX_DEQ_SCHED_CHANGE instead of the never-defined
%SCX_DEQ_SAVE
- internal.h: @name shows up in the ops file in the scheduler's sysfs
directory, not a "kernel.sched_ext_ops" sysctl
Signed-off-by: Tao Cui <cuitao@kylinos.cn>
---
kernel/sched/ext/inlines.h | 2 +-
kernel/sched/ext/internal.h | 7 ++++---
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/kernel/sched/ext/inlines.h b/kernel/sched/ext/inlines.h
index 72d5ccd..8f3be59 100644
--- a/kernel/sched/ext/inlines.h
+++ b/kernel/sched/ext/inlines.h
@@ -22,7 +22,7 @@ enum scx_dsp_verdict {
};
/*
- * One user of this function is scx_bpf_dispatch() which can be called
+ * One user of this function is scx_bpf_sub_dispatch() which can be called
* recursively as sub-sched dispatches nest. Always inline to reduce stack usage
* from the call frame.
*/
diff --git a/kernel/sched/ext/internal.h b/kernel/sched/ext/internal.h
index b699e7c..c91296c 100644
--- a/kernel/sched/ext/internal.h
+++ b/kernel/sched/ext/internal.h
@@ -485,7 +485,7 @@ struct sched_ext_ops {
* - sleeping (%SCX_DEQ_SLEEP)
* - being moved to another CPU
* - being temporarily taken off the queue for an attribute change
- * (%SCX_DEQ_SAVE)
+ * (%SCX_DEQ_SCHED_CHANGE)
*
* This and ->dequeue() are related but not coupled. This operation
* notifies @p's state transition and may not be preceded by ->dequeue()
@@ -966,8 +966,9 @@ struct sched_ext_ops {
* @name: BPF scheduler's name
*
* Must be a non-zero valid BPF object name including only isalnum(),
- * '_' and '.' chars. Shows up in kernel.sched_ext_ops sysctl while the
- * BPF scheduler is enabled.
+ * '_' and '.' chars. Exposed via the ops file in the scheduler's sysfs
+ * directory, /sys/kernel/sched_ext/root/ops for the root scheduler,
+ * while the BPF scheduler is enabled.
*/
char name[SCX_OPS_NAME_LEN];
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-08-13 23:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-13 23:01 [PATCH v2 0/2] sched_ext: minor doc and comment fixes Tao Cui
2026-08-13 23:01 ` [PATCH v2 1/2] Documentation: sched_ext: fix events sysfs path and show_state example Tao Cui
2026-08-13 23:01 ` [PATCH v2 2/2] sched_ext: fix stale references in doc comments Tao Cui
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox