]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
sched_ext: Fix incomplete help text usage strings
authorCheng-Yang Chou <yphbchou0911@gmail.com>
Wed, 11 Mar 2026 11:34:07 +0000 (19:34 +0800)
committerTejun Heo <tj@kernel.org>
Wed, 11 Mar 2026 21:02:57 +0000 (11:02 -1000)
Several demo schedulers and the selftest runner had usage strings
that omitted options which are actually supported:

- scx_central: add missing [-v]
- scx_pair: add missing [-v]
- scx_qmap: add missing [-S] and [-H]
- scx_userland: add missing [-v]
- scx_sdt: remove [-f] which no longer exists
- runner.c: add missing [-s], [-l], [-q]; drop [-h] which none of the
  other sched_ext tools list in their usage lines

Suggested-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Cheng-Yang Chou <yphbchou0911@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
tools/sched_ext/scx_central.c
tools/sched_ext/scx_pair.c
tools/sched_ext/scx_qmap.c
tools/sched_ext/scx_sdt.c
tools/sched_ext/scx_userland.c
tools/testing/selftests/sched_ext/runner.c

index 710fa03376e256d8a894dc4803346261fcaab6f0..fd4c0eaa4326dabb6a46201d7bd8e3751f50240f 100644 (file)
@@ -21,7 +21,7 @@ const char help_fmt[] =
 "\n"
 "See the top-level comment in .bpf.c for more details.\n"
 "\n"
-"Usage: %s [-s SLICE_US] [-c CPU]\n"
+"Usage: %s [-s SLICE_US] [-c CPU] [-v]\n"
 "\n"
 "  -s SLICE_US   Override slice duration\n"
 "  -c CPU        Override the central CPU (default: 0)\n"
index 2e509391f3dab9e4f47544af66e92ce866894bce..61fd86b44c40fa4ade5b9e9f3bf37fec2cfa0f19 100644 (file)
@@ -21,7 +21,7 @@ const char help_fmt[] =
 "\n"
 "See the top-level comment in .bpf.c for more details.\n"
 "\n"
-"Usage: %s [-S STRIDE]\n"
+"Usage: %s [-S STRIDE] [-v]\n"
 "\n"
 "  -S STRIDE     Override CPU pair stride (default: nr_cpus_ids / 2)\n"
 "  -v            Print libbpf debug messages\n"
index 9252037284d3079b59d33cde528d4380bba5e945..5916bbe0d77f98619b17a63cbb787943dc6e3da7 100644 (file)
@@ -21,7 +21,7 @@ const char help_fmt[] =
 "See the top-level comment in .bpf.c for more details.\n"
 "\n"
 "Usage: %s [-s SLICE_US] [-e COUNT] [-t COUNT] [-T COUNT] [-l COUNT] [-b COUNT]\n"
-"       [-P] [-M] [-d PID] [-D LEN] [-p] [-v]\n"
+"       [-P] [-M] [-H] [-d PID] [-D LEN] [-S] [-p] [-v]\n"
 "\n"
 "  -s SLICE_US   Override slice duration\n"
 "  -e COUNT      Trigger scx_bpf_error() after COUNT enqueues\n"
index a36405d8df300f3f395ef7fa1834ff560d13feed..bf664b2d37859263c265e53726b359d4af4b4a87 100644 (file)
@@ -20,7 +20,7 @@ const char help_fmt[] =
 "\n"
 "Modified version of scx_simple that demonstrates arena-based data structures.\n"
 "\n"
-"Usage: %s [-f] [-v]\n"
+"Usage: %s [-v]\n"
 "\n"
 "  -v            Print libbpf debug messages\n"
 "  -h            Display this help and exit\n";
index 3f2aba658b4a42891e3f88ed1c386fbdb8b77806..616043c165e66b53f29104ad9de5a1630670cf93 100644 (file)
@@ -38,7 +38,7 @@ const char help_fmt[] =
 "\n"
 "Try to reduce `sysctl kernel.pid_max` if this program triggers OOMs.\n"
 "\n"
-"Usage: %s [-b BATCH]\n"
+"Usage: %s [-b BATCH] [-v]\n"
 "\n"
 "  -b BATCH      The number of tasks to batch when dispatching (default: 8)\n"
 "  -v            Print libbpf debug messages\n"
index 761c21f964043a702b7fe08b2fcff8d7addfa5b0..90043fd74a60c0f322a4693ada987ba46e7a7109 100644 (file)
@@ -18,7 +18,7 @@ const char help_fmt[] =
 "It's required for the testcases to be serial, as only a single host-wide sched_ext\n"
 "scheduler may be loaded at any given time."
 "\n"
-"Usage: %s [-t TEST] [-h]\n"
+"Usage: %s [-t TEST] [-s] [-l] [-q]\n"
 "\n"
 "  -t TEST       Only run tests whose name includes this string\n"
 "  -s            Include print output for skipped tests\n"