From c06efcb3225fca559bbc3e9da50f9ff4188dbebc Mon Sep 17 00:00:00 2001 From: Yabin Cui Date: Tue, 10 Dec 2024 15:45:53 -0800 Subject: [PATCH] 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 --- arch/arm64/configs/gki_defconfig | 1 + arch/x86/configs/gki_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm64/configs/gki_defconfig b/arch/arm64/configs/gki_defconfig index b54447749a79..d18aa99530ba 100644 --- a/arch/arm64/configs/gki_defconfig +++ b/arch/arm64/configs/gki_defconfig @@ -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 diff --git a/arch/x86/configs/gki_defconfig b/arch/x86/configs/gki_defconfig index d987ef782d1d..d833959306b8 100644 --- a/arch/x86/configs/gki_defconfig +++ b/arch/x86/configs/gki_defconfig @@ -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