[RFC PATCH linux dev-5.4 3/4] ARM: configs: aspeed-g5: Enable kprobes
Andrew Jeffery
andrew at aj.id.au
Thu May 14 23:27:02 AEST 2020
Enable kprobes to improve the debugging experience on the AST2500 and
later.
Setting CONFIG_KPROBES=y results in the following change in kernel size:
Before:
$ size vmlinux
text data bss dec hex filename
8240349 2388862 172304 10801515 a4d16b vmlinux
$ stat --printf '%s\n' *.zImage
3458368
After:
$ size vmlinux
text data bss dec hex filename
8279214 2399530 176912 10855656 a5a4e8 vmlinux
$ stat --printf '%s\n' *.zImage
3471880
This gives a 54,141 byte increase to vmlinux and a 13,512 byte increase
to the size of the compressed kernel image. In the most constrained BMC
flash layout (arch/arm/boot/dts/openbmc-flash-layout.dtsi) this change
decreases the free space in the kernel partition from 998,080 bytes to
984,568 bytes.
Signed-off-by: Andrew Jeffery <andrew at aj.id.au>
---
arch/arm/configs/aspeed_g5_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/configs/aspeed_g5_defconfig b/arch/arm/configs/aspeed_g5_defconfig
index e30f27a413f4..254fb7562738 100644
--- a/arch/arm/configs/aspeed_g5_defconfig
+++ b/arch/arm/configs/aspeed_g5_defconfig
@@ -45,6 +45,7 @@ CONFIG_VFP=y
CONFIG_NEON=y
CONFIG_KERNEL_MODE_NEON=y
CONFIG_FIRMWARE_MEMMAP=y
+CONFIG_KPROBES=y
CONFIG_JUMP_LABEL=y
CONFIG_MODULES=y
# CONFIG_BLK_DEV_BSG is not set
--
2.25.1
More information about the openbmc
mailing list