]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftest/ftrace: Generalise ftracetest to use with RV
authorGabriele Monaco <gmonaco@redhat.com>
Fri, 17 Oct 2025 11:52:02 +0000 (13:52 +0200)
committerGabriele Monaco <gmonaco@redhat.com>
Tue, 11 Nov 2025 11:40:15 +0000 (12:40 +0100)
commita0aa283c53a703240a93ae38aa04bc9e4ca89d12
tree71c283274a2a2a96871e17cc01c2e0b808ef3e6a
parente9a6fb0bcdd7609be6969112f3fbfcce3b1d4a7c
selftest/ftrace: Generalise ftracetest to use with RV

The ftracetest script is a fairly complete test framework for tracefs-like
subsystem, but it can only be used for ftrace selftests.

If OPT_TEST_DIR is provided and includes a function file, use that as
test directory going forward rather than just grabbing tests from it.

Generalise function names like initialize_ftrace to initialize_system.

Add the --rv argument to set up the test for rv, basically changing the
trace directory to $TRACING_DIR/rv and displaying an error if that
cannot be found.

This prepares for rv selftests inclusion.

Link: https://lore.kernel.org/r/20251017115203.140080-2-gmonaco@redhat.com
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
tools/testing/selftests/ftrace/ftracetest
tools/testing/selftests/ftrace/test.d/00basic/mount_options.tc
tools/testing/selftests/ftrace/test.d/functions