linux-stable/mm/kfence
Marco Elver 9a19aeb566 kfence: count unexpectedly skipped allocations
Maintain a counter to count allocations that are skipped due to being
incompatible (oversized, incompatible gfp flags) or no capacity.

This is to compute the fraction of allocations that could not be
serviced by KFENCE, which we expect to be rare.

Link: https://lkml.kernel.org/r/20210923104803.2620285-2-elver@google.com
Signed-off-by: Marco Elver <elver@google.com>
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
Acked-by: Alexander Potapenko <glider@google.com>
Cc: Aleksandr Nogikh <nogikh@google.com>
Cc: Jann Horn <jannh@google.com>
Cc: Taras Madan <tarasmadan@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-11-06 13:30:43 -07:00
..
core.c kfence: count unexpectedly skipped allocations 2021-11-06 13:30:43 -07:00
kfence.h kfence: show cpu and timestamp in alloc/free info 2021-09-08 11:50:24 -07:00
kfence_test.c Merge branch 'akpm' (patches from Andrew) 2021-09-08 12:55:35 -07:00
Makefile kfence: add test suite 2021-02-26 09:41:02 -08:00
report.c Merge branch 'akpm' (patches from Andrew) 2021-09-08 12:55:35 -07:00