summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Wei <lucaswei@google.com>2021-01-28 21:17:04 +0800
committerLucas Wei <lucaswei@google.com>2021-01-28 21:18:01 +0800
commit61f6035892c177c9fda489fbb6c5b672b229091a (patch)
tree8cf5db921c32d42b1b5b68b2a1cfb1cb9719b90a
parent3b232fda6bc3f6de6d56b1cd39c9006769b73cd2 (diff)
downloadbonito-61f6035892c177c9fda489fbb6c5b672b229091a.tar.gz
Create memory accounting lunch target
This memory accounting lunch target will involve coupled debug kernel with memory accounting configs. Bug: 175771521 Signed-off-by: Lucas Wei <lucaswei@google.com> Change-Id: I5fa9c14cb536fc99eed56de515d81b88fe46effb
-rw-r--r--BoardConfig-common.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/BoardConfig-common.mk b/BoardConfig-common.mk
index 96ae5789..17a472c5 100644
--- a/BoardConfig-common.mk
+++ b/BoardConfig-common.mk
@@ -241,6 +241,10 @@ BOARD_VENDOR_KERNEL_MODULES += \
else ifeq (,$(filter-out sargo_kernel_debug_memory bonito_kernel_debug_memory, $(TARGET_PRODUCT)))
BOARD_VENDOR_KERNEL_MODULES += \
$(wildcard device/google/bonito-kernel/debug_memory/*.ko)
+else ifeq (,$(filter-out sargo_kernel_debug_memory_accounting bonito_kernel_debug_memory_accounting, $(TARGET_PRODUCT)))
+BOARD_VENDOR_KERNEL_MODULES += \
+ $(wildcard device/google/bonito-kernel/debug_memory_acounting/*.ko)
+BOARD_KERNEL_CMDLINE += page_owner=on
else ifeq (,$(filter-out sargo_kernel_debug_locking bonito_kernel_debug_locking, $(TARGET_PRODUCT)))
BOARD_VENDOR_KERNEL_MODULES += \
$(wildcard device/google/bonito-kernel/debug_locking/*.ko)
@@ -260,6 +264,8 @@ ifeq (,$(filter-out sargo_kasan bonito_kasan, $(TARGET_PRODUCT)))
BOARD_PREBUILT_DTBIMAGE_DIR := device/google/bonito-kernel/kasan
else ifeq (,$(filter-out sargo_kernel_debug_memory bonito_kernel_debug_memory, $(TARGET_PRODUCT)))
BOARD_PREBUILT_DTBIMAGE_DIR := device/google/bonito-kernel/debug_memory
+else ifeq (,$(filter-out sargo_kernel_debug_memory_accounting bonito_kernel_debug_memory_accounting, $(TARGET_PRODUCT)))
+BOARD_PREBUILT_DTBIMAGE_DIR := device/google/bonito-kernel/debug_memory_accounting
else ifeq (,$(filter-out sargo_kernel_debug_locking bonito_kernel_debug_locking, $(TARGET_PRODUCT)))
BOARD_PREBUILT_DTBIMAGE_DIR := device/google/bonito-kernel/debug_locking
else ifeq (,$(filter-out sargo_kernel_debug_hang bonito_kernel_debug_hang, $(TARGET_PRODUCT)))