linux/mm/kfence
Peng Liu 8913c61001 kfence: make test case compatible with run time set sample interval
The parameter kfence_sample_interval can be set via boot parameter and
late shell command, which is convenient for automated tests and KFENCE
parameter optimization.  However, KFENCE test case just uses
compile-time CONFIG_KFENCE_SAMPLE_INTERVAL, which will make KFENCE test
case not run as users desired.  Export kfence_sample_interval, so that
KFENCE test case can use run-time-set sample interval.

Link: https://lkml.kernel.org/r/20220207034432.185532-1-liupeng256@huawei.com
Signed-off-by: Peng Liu <liupeng256@huawei.com>
Reviewed-by: Marco Elver <elver@google.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Christian Knig <christian.koenig@amd.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2022-02-11 17:55:00 -08:00
..
core.c kfence: make test case compatible with run time set sample interval 2022-02-11 17:55:00 -08:00
kfence_test.c kfence: make test case compatible with run time set sample interval 2022-02-11 17:55:00 -08:00
kfence.h kfence: limit currently covered allocations when pool nearly full 2021-11-06 13:30:43 -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