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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user