diff options
| author | Andrey Konovalov <[email protected]> | 2022-09-05 23:05:47 +0200 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2022-10-03 14:03:02 -0700 |
| commit | 80b92bfe3bb75aa6688f58af9df356757a46f659 (patch) | |
| tree | 03827a0d4725b1ad461ff9f57e9919f7c0b33ad3 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 7ebfce33125100e3f0c5e059845a019a1401433d (diff) | |
kasan: dynamically allocate stack ring entries
Instead of using a large static array, allocate the stack ring dynamically
via memblock_alloc().
The size of the stack ring is controlled by a new kasan.stack_ring_size
command-line parameter. When kasan.stack_ring_size is not provided, the
default value of 32 << 10 is used.
When the stack trace collection is disabled via kasan.stacktrace=off, the
stack ring is not allocated.
Link: https://lkml.kernel.org/r/03b82ab60db53427e9818e0b0c1971baa10c3cbc.1662411800.git.andreyknvl@google.com
Signed-off-by: Andrey Konovalov <[email protected]>
Acked-by: Marco Elver <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Cc: Andrey Ryabinin <[email protected]>
Cc: Dmitry Vyukov <[email protected]>
Cc: Evgenii Stepanov <[email protected]>
Cc: Peter Collingbourne <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions