diff options
| author | Gabriele Monaco <gmonaco@redhat.com> | 2026-07-23 09:45:20 +0200 |
|---|---|---|
| committer | Gabriele Monaco <gmonaco@redhat.com> | 2026-07-31 13:53:52 +0200 |
| commit | c737b725b1ac601816dab5c5072f80ddd413aa6e (patch) | |
| tree | c4498639012b1dfd3ce817474f862634b5fe7c37 /tools/perf/scripts/python/stackcollapse.py | |
| parent | bc4eca3f24e2806c0117215c671013f5297141b6 (diff) | |
verification/rvgen: Improve rv_dir discovery in RVGenerator
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.
Reviewed-by: Nam Cao <namcao@linutronix.de>
Link: https://lore.kernel.org/r/20260723074534.43521-4-gmonaco@redhat.com
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
