csky: Add kmemleak support
authorGuo Ren <guoren@linux.alibaba.com>
Thu, 24 Dec 2020 03:34:43 +0000 (03:34 +0000)
committerGuo Ren <guoren@linux.alibaba.com>
Tue, 12 Jan 2021 01:52:41 +0000 (09:52 +0800)
Here is the log after enabled:

[    1.798972] kmemleak: Kernel memory leak detector initialized (mem pool available: 15851)
[    1.798983] kmemleak: Automatic memory scanning thread started

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
arch/csky/Kconfig

index af640a4..7f17211 100644 (file)
@@ -43,6 +43,7 @@ config CSKY
        select HAVE_CONTEXT_TRACKING
        select HAVE_VIRT_CPU_ACCOUNTING_GEN
        select HAVE_DEBUG_BUGVERBOSE
+       select HAVE_DEBUG_KMEMLEAK
        select HAVE_DYNAMIC_FTRACE
        select HAVE_DYNAMIC_FTRACE_WITH_REGS
        select HAVE_FUNCTION_TRACER