Whamcloud - gitweb
LU-17005 obdclass: allow stats header to be disabled 23/51823/2
authorAndreas Dilger <adilger@whamcloud.com>
Mon, 31 Jul 2023 19:34:22 +0000 (13:34 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 24 Aug 2023 04:36:57 +0000 (04:36 +0000)
commit2a498f06ccc975fb57214961db6e20a6c1cc2ec7
tree749f6197b29506318d84691ef749e9b812601d7c
parent0eb815b2fc83b8fe299e49c320c7c68bcd6d9742
LU-17005 obdclass: allow stats header to be disabled

Add a global "enable_stats_header" tunable parameter that can be
set to enable/disable the "start_time" and "elapsed_time" fields
in the standard lprocfs "stats" files.

Default to enabled, since this landed shortly after v2_14_0.

Test-Parameters: trivial
Fixes: 5efb892396e3 ("LU-11407 obdclass: add start time to stats files")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I460b957447bfb83e6d4fd7395b79ce994f3ebbe5
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51823
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Feng Lei <flei@whamcloud.com>
Reviewed-by: Nathaniel Clark <nclark@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lprocfs_status.h
lustre/obdclass/lprocfs_status.c
lustre/obdclass/obd_sysfs.c
lustre/tests/sanity.sh