ANDROID: enable memory allocation profiling configs

Enable memory allocation profiling while keeping it turned off by default.
The feature can be enabled using kernel command like by adding the below
boot parameter:

sysctl.vm.mem_profiling=1,compressed

Bug: 380948583
Change-Id: I7c863153b69aa7b9dc2fcfef6678260852ffa258
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
This commit is contained in:
Suren Baghdasaryan
2024-11-25 16:14:19 -08:00
parent a5003b74c9
commit 291f863611
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -755,6 +755,8 @@ CONFIG_UBSAN_TRAP=y
# CONFIG_UBSAN_ENUM is not set
CONFIG_PAGE_OWNER=y
CONFIG_DEBUG_MEMORY_INIT=y
CONFIG_MEM_ALLOC_PROFILING=y
# CONFIG_MEM_ALLOC_PROFILING_ENABLED_BY_DEFAULT is not set
CONFIG_KASAN=y
CONFIG_KASAN_HW_TAGS=y
CONFIG_KFENCE=y
+2
View File
@@ -684,6 +684,8 @@ CONFIG_UBSAN_TRAP=y
# CONFIG_UBSAN_ENUM is not set
CONFIG_PAGE_OWNER=y
CONFIG_DEBUG_MEMORY_INIT=y
CONFIG_MEM_ALLOC_PROFILING=y
# CONFIG_MEM_ALLOC_PROFILING_ENABLED_BY_DEFAULT is not set
CONFIG_KFENCE=y
CONFIG_KFENCE_SAMPLE_INTERVAL=500
CONFIG_KFENCE_NUM_OBJECTS=63