[PATCH v6 01/13] perf dso: Move libunwind dso_data variables into ifdef
Ian Rogers
irogers at google.com
Mon Mar 17 20:31:38 PDT 2025
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 at redhat.com>
Signed-off-by: Ian Rogers <irogers at google.com>
---
tools/perf/util/dso.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/perf/util/dso.h b/tools/perf/util/dso.h
index 84d5aac666aa..14e4ac21a1d3 100644
--- a/tools/perf/util/dso.h
+++ b/tools/perf/util/dso.h
@@ -155,10 +155,12 @@ struct dso_data {
int status;
u32 status_seen;
u64 file_size;
+#ifdef HAVE_LIBUNWIND_SUPPORT
u64 elf_base_addr;
u64 debug_frame_offset;
u64 eh_frame_hdr_addr;
u64 eh_frame_hdr_offset;
+#endif
};
struct dso_bpf_prog {
--
2.49.0.rc1.451.g8f38331e32-goog
More information about the linux-arm-kernel
mailing list