From dc1134bf5e5670ecfd5a4e0666cbc20322a4c4c7 Mon Sep 17 00:00:00 2001 From: Lucas Wei Date: Wed, 3 Mar 2021 19:27:37 +0800 Subject: [PATCH] debug: make page_owner default enabled Adding CONFIG_PAGE_OWNER_ENABLE_DEFAULT in debug config can make page owner default enabled without appending `page_owner=on` in cmdline. Bug: 175771521 Signed-off-by: Lucas Wei Change-Id: I38f9ce144851ed3cb0ed6e9f52286079e52cf2ae --- build.config.bluecross_debug_memory_accounting | 3 ++- build.config.bonito_debug_memory_accounting | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build.config.bluecross_debug_memory_accounting b/build.config.bluecross_debug_memory_accounting index 76afbb9b7d13..b0bebf08866d 100644 --- a/build.config.bluecross_debug_memory_accounting +++ b/build.config.bluecross_debug_memory_accounting @@ -5,7 +5,8 @@ POST_DEFCONFIG_CMDS="check_defconfig && update_debug_config" function update_debug_config() { ${KERNEL_DIR}/scripts/config --file ${OUT_DIR}/.config \ - -e CONFIG_PAGE_OWNER + -e CONFIG_PAGE_OWNER \ + -e CONFIG_PAGE_OWNER_ENABLE_DEFAULT (cd ${OUT_DIR} && \ make ${CC_LD_ARG} O=${OUT_DIR} olddefconfig) } diff --git a/build.config.bonito_debug_memory_accounting b/build.config.bonito_debug_memory_accounting index 1b5cd5083e26..fd2984313108 100644 --- a/build.config.bonito_debug_memory_accounting +++ b/build.config.bonito_debug_memory_accounting @@ -5,7 +5,8 @@ POST_DEFCONFIG_CMDS="check_defconfig && update_debug_config" function update_debug_config() { ${KERNEL_DIR}/scripts/config --file ${OUT_DIR}/.config \ - -e CONFIG_PAGE_OWNER + -e CONFIG_PAGE_OWNER \ + -e CONFIG_PAGE_OWNER_ENABLE_DEFAULT (cd ${OUT_DIR} && \ make ${CC_LD_ARG} O=${OUT_DIR} olddefconfig) }