Thread (33 messages) 33 messages, 4 authors, 4d ago

Re: [PATCH v3 03/17] verification/rvgen: Improve rv_dir discovery in RVGenerator

From: Nam Cao <hidden>
Date: 2026-07-02 14:16:32
Also in: lkml

Gabriele Monaco [off-list ref] writes:
The RVGenerator class can find the RV directory (kernel/trace/rv) in the
kernel tree to do some auto patching. This works by assuming PWD is
either the kernel tree or tools/verification, which isn't always the
case (e.g. when running from selftests).

Make discovery more robust by relying on the absolute path of the
current script and traversing backwards the right number of times.
This should work from any location if rvgen is in the kernel tree.

Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
With or without Thomas's suggestion:
Reviewed-by: Nam Cao <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help