perf: unwind: Fix symfs with libdw
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Fri, 30 Jun 2023 09:11:48 +0000 (11:11 +0200)
committerNamhyung Kim <namhyung@kernel.org>
Sat, 1 Jul 2023 18:12:22 +0000 (11:12 -0700)
commit5f06267b6e6a10dd0cac4eb248fcc51f18c260cc
tree6ea70dfb269785290e5c4cd7fbe9799a90a5b377
parent78a175c4623f66722709494295a0f6754b46f858
perf: unwind: Fix symfs with libdw

Pass the full path including the symfs (if any) to libdw.  Without this
unwinding fails with errors like this when a symfs is used:

  unwind: failed with 'No such file or directory'"

Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: kernel@axis.com
Cc: Ian Rogers <irogers@google.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Link: https://lore.kernel.org/r/20230630-perf-libdw-symfs-v2-1-469760dd4d5b@axis.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/unwind-libdw.c