[PATCH] kunit: fix debugfs run file usage message path

From: Jiangshan Yi

Date: Wed Nov 18 2026 - 23:42:26 EST


The usage message for the debugfs run file points to
/sys/kernel/debugfs/kunit/<suite>/run, but debugfs is mounted at
/sys/kernel/debug, so the printed path does not exist. Use
/sys/kernel/debug/kunit/<suite>/run, matching the comments
elsewhere in the file.

Also fix the same wrong path in the documentation.

Fixes: c72a870926c2 ("kunit: add ability to run tests after boot using debugfs")
Fixes: e9f0e21ceb65 ("Documentation: Add debugfs docs with run after boot")
Signed-off-by: Jiangshan Yi <yijiangshan@xxxxxxxxxx>
---
Documentation/dev-tools/kunit/run_manual.rst | 2 +-
lib/kunit/debugfs.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/dev-tools/kunit/run_manual.rst b/Documentation/dev-tools/kunit/run_manual.rst
index 98e8d5b28808..59c3313a6d15 100644
--- a/Documentation/dev-tools/kunit/run_manual.rst
+++ b/Documentation/dev-tools/kunit/run_manual.rst
@@ -87,7 +87,7 @@ the ``/sys/kernel/debug/kunit/<test_suite>/run`` file:

.. code-block :: bash

- echo "any string" > /sys/kernel/debugfs/kunit/<test_suite>/run
+ echo "any string" > /sys/kernel/debug/kunit/<test_suite>/run

As a result, the test suite runs and the results are printed to the kernel
log.
diff --git a/lib/kunit/debugfs.c b/lib/kunit/debugfs.c
index 442b2ceb955b..fd39395e2a95 100644
--- a/lib/kunit/debugfs.c
+++ b/lib/kunit/debugfs.c
@@ -126,7 +126,7 @@ static int debugfs_print_run(struct seq_file *seq, void *v)
struct kunit_suite *suite = (struct kunit_suite *)seq->private;

seq_puts(seq, "Write to this file to trigger the test suite to run.\n");
- seq_printf(seq, "usage: echo \"any string\" > /sys/kernel/debugfs/kunit/%s/run\n",
+ seq_printf(seq, "usage: echo \"any string\" > /sys/kernel/debug/kunit/%s/run\n",
suite->name);
return 0;
}
--
2.25.1