rv fixes and selftests for v6.18-rc3
Steve,
The following changes since commit 211ddde0823f1442e4ad052a2f30f050145ccada:
Linux 6.18-rc2 (2025-10-19 15:19:16 -1000)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/gmonaco/linux.git rv-6.18-rc3
for you to fetch changes up to d9423638c039a15f7a1720f92c6ed0fddc6fea23:
selftests/verification: Add initial RV tests (2025-10-20 12:48:20 +0200)
----------------------------------------------------------------
Summary of changes:
* Adapt the ftracetest script to be run from a different folder, this uses the already existing OPT_TEST_DIR but extends it further to run independent tests, then add an --rv flag to allow using the script for testing RV (mostly) independently on ftrace.
* A bug causing kernel panic when reading enabled_monitors was reported, change callbacks functions to always use list_head iterators and by doing so, fix the wrong pointer that was leading to the panic.
* The rtapp/pagefault monitor relies on the MMU to be present (pagefaults exist) but that was not enforced via kconfig, leading to potential build errors on systems without an MMU. Add that kconfig dependency.
* Add basic RV selftests in selftests/verification to validate things like available/enabled monitors and reactors. This could have caught the bug introducing kernel panic solved above. Tests use ftracetest.
----------------------------------------------------------------
Gabriele Monaco (2):
selftest/ftrace: Generalise ftracetest to use with RV selftests/verification: Add initial RV tests
Nam Cao (2):
rv: Fully convert enabled_monitors to use list_head as iterator
rv: Make rtapp/pagefault monitor depends on CONFIG_MMU
MAINTAINERS | 1 + kernel/trace/rv/monitors/pagefault/Kconfig | 1 + kernel/trace/rv/rv.c | 12 ++-- tools/testing/selftests/ftrace/ftracetest | 34 +++++++--- .../ftrace/test.d/00basic/mount_options.tc | 2 +- tools/testing/selftests/ftrace/test.d/functions | 6 +- tools/testing/selftests/verification/.gitignore | 2 + tools/testing/selftests/verification/Makefile | 8 +++ tools/testing/selftests/verification/config | 1 + tools/testing/selftests/verification/settings | 1 + .../selftests/verification/test.d/functions | 39 +++++++++++ .../test.d/rv_monitor_enable_disable.tc | 75 ++++++++++++++++++++++ .../verification/test.d/rv_monitor_reactor.tc | 68 ++++++++++++++++++++ .../verification/test.d/rv_monitors_available.tc | 18 ++++++ .../verification/test.d/rv_wwnr_printk.tc | 30 +++++++++ .../selftests/verification/verificationtest-ktap | 8 +++ 16 files changed, 286 insertions(+), 20 deletions(-) create mode 100644 tools/testing/selftests/verification/.gitignore create mode 100644 tools/testing/selftests/verification/Makefile create mode 100644 tools/testing/selftests/verification/config create mode 100644 tools/testing/selftests/verification/settings create mode 100644 tools/testing/selftests/verification/test.d/functions create mode 100644 tools/testing/selftests/verification/test.d/rv_monitor_enable_disable.tc create mode 100644 tools/testing/selftests/verification/test.d/rv_monitor_reactor.tc create mode 100644 tools/testing/selftests/verification/test.d/rv_monitors_available.tc create mode 100644 tools/testing/selftests/verification/test.d/rv_wwnr_printk.tc create mode 100644 tools/testing/selftests/verification/verificationtest-ktap
Quoted 14 lines · On Mon, 20 Oct 2025 14:47:44 +0200 Gabriele Monaco <[email protected]> wrote:
Steve,
The following changes since commit
211ddde0823f1442e4ad052a2f30f050145ccada:Linux 6.18-rc2 (2025-10-19 15:19:16 -1000)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/gmonaco/linux.gitrv-6.18-rc3for you to fetch changes up to
d9423638c039a15f7a1720f92c6ed0fddc6fea23:selftests/verification: Add initial RV tests (2025-10-20 12:48:20 +0200)
Quoted 7 lines
----------------------------------------------------------------
Summary of changes:* Adapt the ftracetest script to be run from a different folder, this uses the already existing
OPT_TEST_DIRbut extends it further to run independent tests, then add an --rv flag to allow using the script for testing RV (mostly) independently on ftrace.
Is the above a bug fix? It looks like it's something that should be added during the merge window.
Quoted 3 lines
* A bug causing kernel panic when reading
enabled_monitorswas reported, change callbacks functions to always uselist_headiterators and by doing so, fix the wrong pointer that was leading to the panic.
Looks like a bug fix that should go in now.
Quoted 4 lines
* The rtapp/pagefault monitor relies on the MMU to be present (pagefaults exist) but that was not enforced via kconfig, leading to potential build errors on systems without an MMU. Add that kconfig dependency.
Bug fix.
Quoted 3 lines
* Add basic RV selftests in selftests/verification to validate things like available/enabled monitors and reactors. This could have caught the bug introducing kernel panic solved above. Tests use ftracetest.
Not really a bug fix but tests can usually go in with the fixes to bugs they now detect. Is this dependent on the first patch?
My question is still on that first change. Can that wait till the merge window? If so, can you remove it from this pull request?
-- Steve
Quoted 40 lines
----------------------------------------------------------------
Gabriele Monaco (2):
selftest/ftrace: Generalise ftracetest to use with RV selftests/verification: Add initial RV testsNam Cao (2):
rv: Fully convertenabled_monitorsto uselist_headas iterator
rv: Make rtapp/pagefault monitor depends onCONFIG_MMUMAINTAINERS | 1 + kernel/trace/rv/monitors/pagefault/Kconfig | 1 + kernel/trace/rv/rv.c | 12 ++-- tools/testing/selftests/ftrace/ftracetest | 34 +++++++--- .../ftrace/test.d/00basic/mount_options.tc | 2 +- tools/testing/selftests/ftrace/test.d/functions | 6 +- tools/testing/selftests/verification/.gitignore | 2 + tools/testing/selftests/verification/Makefile | 8 +++ tools/testing/selftests/verification/config | 1 + tools/testing/selftests/verification/settings | 1 + .../selftests/verification/test.d/functions | 39 +++++++++++ .../test.d/rv_monitor_enable_disable.tc | 75 ++++++++++++++++++++++ .../verification/test.d/rv_monitor_reactor.tc | 68 ++++++++++++++++++++ .../verification/test.d/rv_monitors_available.tc | 18 ++++++ .../verification/test.d/rv_wwnr_printk.tc | 30 +++++++++ .../selftests/verification/verificationtest-ktap | 8 +++ 16 files changed, 286 insertions(+), 20 deletions(-) create mode 100644 tools/testing/selftests/verification/.gitignore create mode 100644 tools/testing/selftests/verification/Makefile create mode 100644 tools/testing/selftests/verification/config create mode 100644 tools/testing/selftests/verification/settings create mode 100644 tools/testing/selftests/verification/test.d/functions create mode 100644 tools/testing/selftests/verification/test.d/rv_monitor_enable_disable.tc create mode 100644 tools/testing/selftests/verification/test.d/rv_monitor_reactor.tc create mode 100644 tools/testing/selftests/verification/test.d/rv_monitors_available.tc create mode 100644 tools/testing/selftests/verification/test.d/rv_wwnr_printk.tc create mode 100644 tools/testing/selftests/verification/verificationtest-ktapCc Gabriele Monaco <[email protected]>Cc Nam Cao <[email protected]>