-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.config.bonito_debug_memory
58 lines (57 loc) · 2.13 KB
/
build.config.bonito_debug_memory
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
DEFCONFIG=bonito_defconfig
KERNEL_DIR=private/msm-google
. ${ROOT_DIR}/${KERNEL_DIR}/build.config.common.clang
POST_DEFCONFIG_CMDS="check_defconfig && update_debug_config"
function update_debug_config() {
${KERNEL_DIR}/scripts/config --file ${OUT_DIR}/.config \
-e CONFIG_LOCKUP_DETECTOR \
-e CONFIG_HARDLOCKUP_DETECTOR \
-e CONFIG_HARDLOCKUP_DETECTOR_OTHER_CPU \
-e CONFIG_BOOTPARAM_HARDLOCKUP_PANIC \
-e CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC \
-e CONFIG_BOOTPARAM_HUNG_TASK_PANIC \
-e CONFIG_WQ_WATCHDOG \
-e CONFIG_PANIC_ON_RT_THROTTLING \
-e CONFIG_RCU_EQS_DEBUG \
-e CONFIG_DEVMEM \
-e CONFIG_DEBUG_OBJECTS \
-e CONFIG_DEBUG_OBJECTS_FREE \
-e CONFIG_DEBUG_OBJECTS_TIMERS \
-e CONFIG_DEBUG_OBJECTS_WORK \
-e CONFIG_DEBUG_OBJECTS_RCU_HEAD \
-e CONFIG_DEBUG_OBJECTS_PERCPU_COUNTER \
-e CONFIG_DEBUG_VM \
-e CONFIG_DEBUG_VM_VMACACHE \
-e CONFIG_DEBUG_VM_RB \
-e CONFIG_DEBUG_MEMORY_INIT \
-e CONFIG_DEBUG_STACK_USAGE \
-e CONFIG_DEBUG_PAGEALLOC \
-e CONFIG_DEBUG_PAGEALLOC_ENABLE_DEFAULT \
-e CONFIG_SCHED_STACK_END_CHECK \
-e CONFIG_SLUB_DEBUG \
-e CONFIG_SLUB_DEBUG_PANIC_ON \
-e CONFIG_PAGE_OWNER \
-e CONFIG_PAGE_OWNER_ENABLE_DEFAULT \
-e CONFIG_PAGE_POISONING \
-e CONFIG_PAGE_POISONING_ENABLE_DEFAULT \
-e CONFIG_DEBUG_RT_MUTEXES \
-e CONFIG_DEBUG_SPINLOCK \
-e CONFIG_DEBUG_SPINLOCK_PANIC_ON_BUG \
-e CONFIG_DEBUG_MUTEXES \
-e CONFIG_DEBUG_PREEMPT \
-e CONFIG_DEBUG_ATOMIC_SLEEP \
-e CONFIG_DEBUG_LIST \
-e CONFIG_QCOM_RTB \
-e CONFIG_QCOM_RTB_SEPARATE_CPUS \
-e CONFIG_PANIC_ON_DATA_CORRUPTION \
-e CONFIG_REGMAP_ALLOW_WRITE_DEBUGFS \
-e CONFIG_PANIC_ON_WARN_DEFAULT_ENABLE \
-d LTO \
-d LTO_CLANG \
-d CFI \
-d CFI_PERMISSIVE \
-d CFI_CLANG \
-d VMAP_STACK
(cd ${OUT_DIR} && \
make ${CC_LD_ARG} O=${OUT_DIR} olddefconfig)
}