mm: use stack_depot for recording kmemleak's backtrace
authorZhaoyang Huang <zhaoyang.huang@unisoc.com>
Thu, 27 Oct 2022 09:50:24 +0000 (17:50 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 16 Dec 2022 00:37:49 +0000 (16:37 -0800)
commit56a61617dd2276cbc56a6c868599716386d70041
treeb1e2aec383e819e37209efdc905efd8eb302206d
parent9102b78b6f6ae6af3557114c265c266b312c1319
mm: use stack_depot for recording kmemleak's backtrace

Using stack_depot to record kmemleak's backtrace which has been
implemented on slub for reducing redundant information.

[akpm@linux-foundation.org: fix build - remove now-unused __save_stack_trace()]
[zhaoyang.huang@unisoc.com: v3]
Link: https://lkml.kernel.org/r/1667101354-4669-1-git-send-email-zhaoyang.huang@unisoc.com
[akpm@linux-foundation.org: fix v3 layout oddities]
[akpm@linux-foundation.org: coding-style cleanups]
Link: https://lkml.kernel.org/r/1666864224-27541-1-git-send-email-zhaoyang.huang@unisoc.com
Signed-off-by: Zhaoyang Huang <zhaoyang.huang@unisoc.com>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: ke.wang <ke.wang@unisoc.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Zhaoyang Huang <huangzhaoyang@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/Kconfig.debug
mm/kmemleak.c