summaryrefslogtreecommitdiff
path: root/fs/bcachefs/Kconfig
diff options
context:
space:
mode:
authorDaniel Hill <daniel@gluo.nz>2022-08-06 05:48:49 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:09:43 +0300
commit92095781e0f607e735971c1a6462ca6dad8826d2 (patch)
tree512dffdde6b5714865d7dabc54a4fa7f27a66708 /fs/bcachefs/Kconfig
parent07bfcc0b4c92a569b7f613a3202f45c89f983b4f (diff)
downloadlinux-92095781e0f607e735971c1a6462ca6dad8826d2.tar.xz
bcachefs: Mean and variance
This module provides a fast 64bit implementation of basic statistics functions, including mean, variance and standard deviation in both weighted and unweighted variants, the unweighted variant has a 32bit limitation per sample to prevent overflow when squaring. Signed-off-by: Daniel Hill <daniel@gluo.nz> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/Kconfig')
-rw-r--r--fs/bcachefs/Kconfig9
1 files changed, 9 insertions, 0 deletions
diff --git a/fs/bcachefs/Kconfig b/fs/bcachefs/Kconfig
index 76953e05b240..f8e208826997 100644
--- a/fs/bcachefs/Kconfig
+++ b/fs/bcachefs/Kconfig
@@ -71,3 +71,12 @@ config BCACHEFS_NO_LATENCY_ACCT
depends on BCACHEFS_FS
help
This disables device latency tracking and time stats, only for performance testing
+
+config MEAN_AND_VARIANCE_UNIT_TEST
+ tristate "mean_and_variance unit tests" if !KUNIT_ALL_TESTS
+ depends on KUNIT
+ select MEAN_AND_VARIANCE
+ default KUNIT_ALL_TESTS
+ help
+ This option enables the kunit tests for mean_and_variance module.
+ If unsure, say N.