ANDROID: gki: Enable CONFIG_AUTOFDO_CLANG

This config enables AutoFDO for the kernel.

When an AutoFDO profile isn't provided, this config
only adds more debug info for profiling. This results
in a slight increase (0.5%) in vmlinux size. This extra
debug info is stripped with other debug info when building
boot image. So it's safe to leave this config always
enabled.

When an AutoFDO profile is provided, this config builds
the kernel with the profile.

Bug: 382743224
Test: build arm64 & x86_64
Change-Id: I8f3573580e9b621a8498f5b34069c352650fcf95
Signed-off-by: Yabin Cui <yabinc@google.com>
This commit is contained in:
Yabin Cui
2024-12-10 15:45:53 -08:00
committed by Matthias Männich
parent 2dc6738c39
commit c06efcb322
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -93,6 +93,7 @@ CONFIG_KVM=y
CONFIG_KPROBES=y
CONFIG_JUMP_LABEL=y
CONFIG_SHADOW_CALL_STACK=y
CONFIG_AUTOFDO_CLANG=y
CONFIG_CFI_CLANG=y
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y
+1
View File
@@ -86,6 +86,7 @@ CONFIG_KVM_INTEL=y
CONFIG_KVM_AMD=y
CONFIG_KPROBES=y
CONFIG_JUMP_LABEL=y
CONFIG_AUTOFDO_CLANG=y
CONFIG_CFI_CLANG=y
CONFIG_MODULES=y
CONFIG_MODULE_UNLOAD=y