diff options
author | Marco Elver <elver@google.com> | 2024-01-18 14:01:29 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-01-26 10:52:21 +0300 |
commit | c2a292545cd43dcab86d5290ed95b006f1cefe90 (patch) | |
tree | 2dd6cc85898413bc8fd8f72ec11803a92ba5eea4 /lib/ucs2_string.c | |
parent | f6564fce256a3944aa1bc76cb3c40e792d97c1eb (diff) | |
download | linux-c2a292545cd43dcab86d5290ed95b006f1cefe90.tar.xz |
stackdepot: add stats counters exported via debugfs
Add a few basic stats counters for stack depot that can be used to derive
if stack depot is working as intended. This is a snapshot of the new
stats after booting a system with a KASAN-enabled kernel:
$ cat /sys/kernel/debug/stackdepot/stats
pools: 838
allocations: 29861
frees: 6561
in_use: 23300
freelist_size: 1840
Generally, "pools" should be well below the max; once the system is
booted, "in_use" should remain relatively steady.
Link: https://lkml.kernel.org/r/20240118110216.2539519-1-elver@google.com
Signed-off-by: Marco Elver <elver@google.com>
Reviewed-by: Andrey Konovalov <andreyknvl@gmail.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Alexander Potapenko <glider@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/ucs2_string.c')
0 files changed, 0 insertions, 0 deletions