From e84eb508839880404c8d92a7d3bd4b71e8cb4bf9 Mon Sep 17 00:00:00 2001 From: Pierre-Louis Bossart Date: Fri, 21 Jun 2024 15:08:06 +0200 Subject: [PATCH] debug-info-defconfig: add debug symbols needed by pahole With this we can see the structures pahole -C 'snd_sof_dev' sound/soc/sof/snd-sof.o struct snd_sof_dev { struct device * dev; /* 0 8 */ spinlock_t ipc_lock; /* 8 72 */ /* --- cacheline 1 boundary (64 bytes) was 16 bytes ago --- */ spinlock_t hw_lock; /* 80 72 */ /* --- cacheline 2 boundary (128 bytes) was 24 bytes ago --- */ bool dspless_mode_selected; /* 152 1 */ /* XXX 7 bytes hole, try to pack */ struct sof_firmware basefw; /* 160 16 */ /* XXX last struct has 4 bytes of padding */ struct snd_soc_component_driver plat_drv; /* 176 384 */ ... Signed-off-by: Pierre-Louis Bossart --- debug-info-defconfig | 3 +++ kconfig-sof-default.sh | 1 + 2 files changed, 4 insertions(+) create mode 100644 debug-info-defconfig diff --git a/debug-info-defconfig b/debug-info-defconfig new file mode 100644 index 0000000..210e776 --- /dev/null +++ b/debug-info-defconfig @@ -0,0 +1,3 @@ +CONFIG_DEBUG_INFO=y +CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT=y +CONFIG_DEBUG_INFO_BTF=y diff --git a/kconfig-sof-default.sh b/kconfig-sof-default.sh index f0fff2e..5baa0db 100755 --- a/kconfig-sof-default.sh +++ b/kconfig-sof-default.sh @@ -22,4 +22,5 @@ $COMMAND .config \ "$KCONFIG_DIR"/soundwire-defconfig \ "$KCONFIG_DIR"/soundwire-codecs-defconfig \ "$KCONFIG_DIR"/bpf-defconfig \ + "$KCONFIG_DIR"/debug-info-defconfig \ "$@"