Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Ian Rogers and committed by
Namhyung Kim
f1794ecb d10a7aaa

+2
+2
tools/perf/util/dso.h
··· 155 155 int status; 156 156 u32 status_seen; 157 157 u64 file_size; 158 + #ifdef HAVE_LIBUNWIND_SUPPORT 158 159 u64 elf_base_addr; 159 160 u64 debug_frame_offset; 160 161 u64 eh_frame_hdr_addr; 161 162 u64 eh_frame_hdr_offset; 163 + #endif 162 164 }; 163 165 164 166 struct dso_bpf_prog {