diff options
author | Namhyung Kim <namhyung@kernel.org> | 2025-02-12 14:14:45 -0800 |
---|---|---|
committer | Namhyung Kim <namhyung@kernel.org> | 2025-02-12 19:44:16 -0800 |
commit | 70f127c716e8fa68d7a47248fb68cd906ec3d667 (patch) | |
tree | 7bd51055c82918e9a83b8b1c4c81e4cd3e6bc535 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | fc00897c8a3f7f57144e6e77b34e9d5020af719f (diff) |
perf tools: Use symfs when opening debuginfo by path
I found that it failed to load a binary using --symfs option. Say I
have a binary in /home/user/prog/xxx and a perf data file with it. If I
move them to a different machine and use --symfs, it tries to find the
binary in some locations under symfs using dso__read_binary_type_filename(),
but not the last one.
${symfs}/usr/lib/debug/home/user/prog/xxx.debug
${symfs}/usr/lib/debug/home/user/prog/xxx
${symfs}/home/user/prog/.debug/xxx
/home/user/prog/xxx
It should check ${symfs}/home/usr/prog/xxx. Let's fix it.
Reviewed-by: Ian Rogers <irogers@google.com>
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Link: https://lore.kernel.org/r/20250212221445.437481-1-namhyung@kernel.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions