]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
perf tools: Use machine->root_dir to find /proc/kallsyms
authorNamhyung Kim <namhyung@kernel.org>
Tue, 2 Dec 2025 23:57:17 +0000 (15:57 -0800)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 3 Dec 2025 05:59:14 +0000 (21:59 -0800)
commit4fba95fc383f9231ba486512ee1c9d60b8f4a9a4
treeac2d94e9d2cf0a77cc3e25c51d61858f490efe44
parent295d8a03ca04858d956efdaf4ac2a3be3fc05108
perf tools: Use machine->root_dir to find /proc/kallsyms

This is for test functions to find the kallsyms correctly.  It can find
the machine from the kernel maps and use its root_dir.  This is helpful
to setup fake /proc directory for testing.

Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/symbol.c