Skip to content

Commit

Permalink
ANDROID: gki_defconfig: Enable CONFIG_PAGE_OWNER
Browse files Browse the repository at this point in the history
This helps enable the page owner feature at runtime via
kernel param, and helps in memory accouting and leak
debugging. Enabling just this config does not incur any
significant overhead.
Explicit CONFIG_DEBUG_FS=y is removed because CONFIG_PAGE_OWNER
enables it implicitly.

Bug: 171354330
Change-Id: I45416805c8e651af442f51ffe9aa46b21e7d3f13
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
  • Loading branch information
Vinayak Menon authored and adelva1984 committed Feb 15, 2021
1 parent d3f134f commit 1b468f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/arm64/configs/gki_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ CONFIG_DEBUG_INFO_DWARF4=y
CONFIG_HEADERS_INSTALL=y
# CONFIG_SECTION_MISMATCH_WARN_ONLY is not set
CONFIG_MAGIC_SYSRQ=y
CONFIG_DEBUG_FS=y
CONFIG_PAGE_OWNER=y
CONFIG_DEBUG_STACK_USAGE=y
CONFIG_DEBUG_MEMORY_INIT=y
CONFIG_KASAN=y
Expand Down
4 changes: 3 additions & 1 deletion arch/x86/configs/gki_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ CONFIG_HYPERVISOR_GUEST=y
CONFIG_PARAVIRT=y
CONFIG_NR_CPUS=32
CONFIG_EFI=y
CONFIG_CMDLINE_BOOL=y
CONFIG_CMDLINE="stack_depot_disable=on"
CONFIG_PM_WAKELOCKS=y
CONFIG_PM_WAKELOCKS_LIMIT=0
# CONFIG_PM_WAKELOCKS_GC is not set
Expand Down Expand Up @@ -543,7 +545,7 @@ CONFIG_DEBUG_INFO_DWARF4=y
CONFIG_HEADERS_INSTALL=y
# CONFIG_SECTION_MISMATCH_WARN_ONLY is not set
CONFIG_MAGIC_SYSRQ=y
CONFIG_DEBUG_FS=y
CONFIG_PAGE_OWNER=y
CONFIG_DEBUG_STACK_USAGE=y
CONFIG_DEBUG_MEMORY_INIT=y
CONFIG_KFENCE=y
Expand Down

0 comments on commit 1b468f8

Please sign in to comment.