]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf dso: Move libunwind dso_data variables into ifdef
authorIan Rogers <irogers@google.com>
Wed, 19 Mar 2025 05:07:28 +0000 (22:07 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 21 Mar 2025 05:56:29 +0000 (22:56 -0700)
commitf1794ecb0c04085906d9694db7e398e5d5cd6536
tree441edf427d75264c92e617980b44e31aa2d25bf5
parentd10a7aaaf8ce7653ac005fd251931894f6c97e21
perf dso: Move libunwind dso_data variables into ifdef

The variables elf_base_addr, debug_frame_offset, eh_frame_hdr_addr and
eh_frame_hdr_offset are only accessed in unwind-libunwind-local.c
which is conditionally built on having libunwind support. Make the
variables conditional on libunwind support too.

Reviewed-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Ian Rogers <irogers@google.com>
Reviewed-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Arnaldo Carvalho de Melo <acme@kernel.org>
Link: https://lore.kernel.org/r/20250319050741.269828-2-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/util/dso.h