summaryrefslogtreecommitdiff
path: root/fs/bcachefs/Kconfig
diff options
context:
space:
mode:
authorDaniel Hill <daniel@gluo.nz>2022-07-14 20:33:09 +1200
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-22 17:09:35 -0400
commitc807ca95a6e20bedbbb84287bc7087c2b2b775de (patch)
tree0add067029709ede728fd48ca3761325fe1cd8fc /fs/bcachefs/Kconfig
parent25055c690f9ab3d4fb72b8a07323bf952c2682dc (diff)
bcachefs: added lock held time stats
We now record the length of time btree locks are held and expose this in debugfs. Enabled via CONFIG_BCACHEFS_LOCK_TIME_STATS. 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/Kconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/bcachefs/Kconfig b/fs/bcachefs/Kconfig
index d2eb65e9032b..7ae85900e5b4 100644
--- a/fs/bcachefs/Kconfig
+++ b/fs/bcachefs/Kconfig
@@ -59,6 +59,12 @@ config BCACHEFS_TESTS
help
Include some unit and performance tests for the core btree code
+config BCACHEFS_LOCK_TIME_STATS
+ bool "bcachefs lock time statistics"
+ depends on BCACHEFS_FS
+ help
+ Expose statistics for how long we held a lock in debugfs
+
config BCACHEFS_NO_LATENCY_ACCT
bool "disable latency accounting and time stats"
depends on BCACHEFS_FS