Re: [GIT PULL] rv: Fixes for 7.3

From: Gabriele Monaco

Date: Thu Aug 27 2026 - 03:11:11 EST


On Wed, 2026-08-26 at 14:56 -0700, Linus Torvalds wrote:
> On Wed, 26 Aug 2026 at 11:48, Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> >   The rvgen kunit command generates .bak backup files and these are
> >   checked in for selftests as "golden" files for make check.
>
> What?
>
> What broken tool checks in generated files?


The standard usage of rvgen is to process a specification file (e.g. dot) and
generate code that is then /modified/ to be included in the kernel as working C
code. That's what you can see in kernel/trace/rv/monitors/ .

In this case, the golden directory is used only for rvgen's test suite, the
files needed to validate that the generation works, which has helped
tremendously during the past iterations of the tool.
This approach is similar to what is done in scripts/kconfig/tests/ with
*expected* files.

Thanks,
Gabriele