linux-doc.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] sched_ext: minor doc and comment fixes
@ 2026-08-11  7:37 Tao Cui
  2026-08-11  7:38 ` [PATCH 1/2] Documentation: sched_ext: fix events sysfs path and show_state example Tao Cui
  2026-08-11  7:38 ` [PATCH 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-11  7:37 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.

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           | 5 ++---
 3 files changed, 8 insertions(+), 8 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/2] Documentation: sched_ext: fix events sysfs path and show_state example
  2026-08-11  7:37 [PATCH 0/2] sched_ext: minor doc and comment fixes Tao Cui
@ 2026-08-11  7:38 ` Tao Cui
  2026-08-11  7:38 ` [PATCH 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-11  7:38 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 ad2fff3c0593..dd4853762426 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      : 0
     bypass_depth  : 0
     nr_rejected   : 0
     enable_seq    : 1
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] sched_ext: fix stale references in doc comments
  2026-08-11  7:37 [PATCH 0/2] sched_ext: minor doc and comment fixes Tao Cui
  2026-08-11  7:38 ` [PATCH 1/2] Documentation: sched_ext: fix events sysfs path and show_state example Tao Cui
@ 2026-08-11  7:38 ` Tao Cui
  1 sibling, 0 replies; 3+ messages in thread
From: Tao Cui @ 2026-08-11  7:38 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>

- scx_bpf_dispatch() was renamed to scx_bpf_dsq_insert()
- drop reference to undefined %SCX_DEQ_SAVE
- @name is in /sys/kernel/sched_ext/root/ops, not a sysctl

Signed-off-by: Tao Cui <cuitao@kylinos.cn>
---
 kernel/sched/ext/inlines.h  | 2 +-
 kernel/sched/ext/internal.h | 5 ++---
 2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/kernel/sched/ext/inlines.h b/kernel/sched/ext/inlines.h
index d2d074cee1cb..812d67d18f54 100644
--- a/kernel/sched/ext/inlines.h
+++ b/kernel/sched/ext/inlines.h
@@ -14,7 +14,7 @@
 #include "cid.h"
 
 /*
- * One user of this function is scx_bpf_dispatch() which can be called
+ * One user of this function is scx_bpf_dsq_insert() 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 b699e7c1103f..06aab2f75208 100644
--- a/kernel/sched/ext/internal.h
+++ b/kernel/sched/ext/internal.h
@@ -485,7 +485,6 @@ 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)
 	 *
 	 * This and ->dequeue() are related but not coupled. This operation
 	 * notifies @p's state transition and may not be preceded by ->dequeue()
@@ -966,8 +965,8 @@ 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
+	 * /sys/kernel/sched_ext/root/ops 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-11  7:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-11  7:37 [PATCH 0/2] sched_ext: minor doc and comment fixes Tao Cui
2026-08-11  7:38 ` [PATCH 1/2] Documentation: sched_ext: fix events sysfs path and show_state example Tao Cui
2026-08-11  7:38 ` [PATCH 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;
as well as URLs for NNTP newsgroup(s).