Skip to content

Commit a8c0f1c

Browse files
seehearfeeltsbogend
authored andcommitted
MIPS: Select ARCH_KEEP_MEMBLOCK if DEBUG_KERNEL to enable sysfs memblock debug
In the current code, CONFIG_ARCH_KEEP_MEMBLOCK is not set for MIPS arch, memblock_discard() will discard memory and reserved arrays if they were allocated, select ARCH_KEEP_MEMBLOCK if DEBUG_KERNEL to give a chance to track "memory" and "reserved" memblocks after early boot, with this patch, we can see the following two sysfs interfaces under DEBUG_FS. /sys/kernel/debug/memblock/memory /sys/kernel/debug/memblock/reserved Signed-off-by: Tiezhu Yang <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
1 parent 5b05897 commit a8c0f1c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/mips/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ config MIPS
1010
select ARCH_HAS_TICK_BROADCAST if GENERIC_CLOCKEVENTS_BROADCAST
1111
select ARCH_HAS_UBSAN_SANITIZE_ALL
1212
select ARCH_HAS_GCOV_PROFILE_ALL
13+
select ARCH_KEEP_MEMBLOCK if DEBUG_KERNEL
1314
select ARCH_SUPPORTS_UPROBES
1415
select ARCH_USE_BUILTIN_BSWAP
1516
select ARCH_USE_CMPXCHG_LOCKREF if 64BIT

0 commit comments

Comments
 (0)