[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251020124744.111326-1-gmonaco@redhat.com>
Date: Mon, 20 Oct 2025 14:47:44 +0200
From: Gabriele Monaco <gmonaco@...hat.com>
To: Steven Rostedt <rostedt@...dmis.org>
Cc: linux-kernel@...r.kernel.org,
Gabriele Monaco <gmonaco@...hat.com>,
Nam Cao <namcao@...utronix.de>
Subject: [GIT PULL] 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
Cc: Gabriele Monaco <gmonaco@...hat.com>
Cc: Nam Cao <namcao@...utronix.de>
Powered by blists - more mailing lists