mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-18 03:23:53 -04:00
lib/stackdepot: use fixed-sized slots for stack records
Instead of storing stack records in stack depot pools one right after another, use fixed-sized slots. Add a new Kconfig option STACKDEPOT_MAX_FRAMES that allows to select the size of the slot in frames. Use 64 as the default value, which is the maximum stack trace size both KASAN and KMSAN use right now. Also add descriptions for other stack depot Kconfig options. This is preparatory patch for implementing the eviction of stack records from the stack depot. Link: https://lkml.kernel.org/r/dce7d030a99ff61022509665187fac45b0827298.1700502145.git.andreyknvl@google.com Signed-off-by: Andrey Konovalov <andreyknvl@google.com> Cc: Alexander Potapenko <glider@google.com> Cc: Dmitry Vyukov <dvyukov@google.com> Cc: Evgenii Stepanov <eugenis@google.com> Cc: Marco Elver <elver@google.com> Cc: Oscar Salvador <osalvador@suse.de> Cc: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
committed by
Andrew Morton
parent
83130ab2d8
commit
fc60e0caa9
10
lib/Kconfig
10
lib/Kconfig
@@ -713,10 +713,20 @@ config ARCH_STACKWALK
|
||||
config STACKDEPOT
|
||||
bool
|
||||
select STACKTRACE
|
||||
help
|
||||
Stack depot: stack trace storage that avoids duplication
|
||||
|
||||
config STACKDEPOT_ALWAYS_INIT
|
||||
bool
|
||||
select STACKDEPOT
|
||||
help
|
||||
Always initialize stack depot during early boot
|
||||
|
||||
config STACKDEPOT_MAX_FRAMES
|
||||
int "Maximum number of frames in trace saved in stack depot"
|
||||
range 1 256
|
||||
default 64
|
||||
depends on STACKDEPOT
|
||||
|
||||
config REF_TRACKER
|
||||
bool
|
||||
|
||||
Reference in New Issue
Block a user