mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 09:13:55 -06:00
accel/tcg: Add debuginfo support
Add libdw-based functions for loading and querying debuginfo. Load debuginfo from the system and the linux-user loaders. This is useful for the upcoming perf support, which can then put human-readable guest symbols instead of raw guest PCs into perfmap and jitdump files. Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Message-Id: <20230112152013.125680-3-iii@linux.ibm.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
da91c19202
commit
7c10cb38cc
7 changed files with 191 additions and 0 deletions
|
@ -1648,6 +1648,12 @@ if libbpf.found() and not cc.links('''
|
|||
endif
|
||||
endif
|
||||
|
||||
# libdw
|
||||
libdw = dependency('libdw',
|
||||
method: 'pkg-config',
|
||||
kwargs: static_kwargs,
|
||||
required: false)
|
||||
|
||||
#################
|
||||
# config-host.h #
|
||||
#################
|
||||
|
@ -1923,6 +1929,7 @@ config_host_data.set('CONFIG_DBUS_DISPLAY', dbus_display)
|
|||
config_host_data.set('CONFIG_CFI', get_option('cfi'))
|
||||
config_host_data.set('CONFIG_SELINUX', selinux.found())
|
||||
config_host_data.set('CONFIG_XEN_BACKEND', xen.found())
|
||||
config_host_data.set('CONFIG_LIBDW', libdw.found())
|
||||
if xen.found()
|
||||
# protect from xen.version() having less than three components
|
||||
xen_version = xen.version().split('.') + ['0', '0']
|
||||
|
@ -3976,6 +3983,7 @@ summary_info += {'libudev': libudev}
|
|||
# Dummy dependency, keep .found()
|
||||
summary_info += {'FUSE lseek': fuse_lseek.found()}
|
||||
summary_info += {'selinux': selinux}
|
||||
summary_info += {'libdw': libdw}
|
||||
summary(summary_info, bool_yn: true, section: 'Dependencies')
|
||||
|
||||
if not supported_cpus.contains(cpu)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue