[SRU][F/kvm, B/kvm][PATCH 0/2] CONFIG_DEBUG_INFO=y

Kelsey Skunberg kelsey.skunberg at canonical.com
Mon Sep 20 19:54:21 UTC 2021


BugLink: https://bugs.launchpad.net/bugs/1935855

[Impact] 

linux-image-unsigned-5.4.0-77-generic-dbgsym provides a
/usr/lib/debug/boot/vmlinux-5.4.0-1040-kvm, but it does not contain any debug
symbols.

Turn on CONFIG_DEBUG_INFO to include those debug symbols.

[Test Case]
Compare:

$ file /usr/lib/debug/boot/vmlinux-*
/usr/lib/debug/boot/vmlinux-5.4.0-1040-kvm: ELF 64-bit LSB executable, x86-64,
version 1 (SYSV), statically linked,
BuildID[sha1]=514891d64a7d18db4fa58aa5cfea213e0951ca9d, not stripped
/usr/lib/debug/boot/vmlinux-5.4.0-77-generic: ELF 64-bit LSB executable, x86-64,
version 1 (SYSV), statically linked,
BuildID[sha1]=773d8ee85333fe092635f65d2b6850909085c11d, with debug_info, not
stripped

[What Could Go Wrong]

Since linux-kvm is tuned for performance, it's possible there's some
side-effect of producing debug symbols that negatively impacts this. I've not
noticed any issues empirically, but I didn't try to measure it.

This config is already succesfully turned on in Hirsute/kvm.

Kelsey Skunberg (2):
  UBUNTU: [config] kvm: CONFIG_DEBUG_INFO=y
  UBUNTU: [config] kvm: CONFIG_DEBUG_INFO=y

 debian.kvm/config/config.common.ubuntu | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

-- 
2.25.1




More information about the kernel-team mailing list