Whamcloud - gitweb
LU-17005 obdclass: allow stats header to be disabled 23/51823/1
authorAndreas Dilger <adilger@whamcloud.com>
Mon, 31 Jul 2023 19:34:22 +0000 (13:34 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Mon, 31 Jul 2023 19:39:20 +0000 (13:39 -0600)
commit370a81bf07f3e3856f73900f276495fb7a2b5223
tree86621b35d1ff9f8b645d2ef2fcee3dc64f0e6574
parent3ebc8e0528e34a11ffeff1e6be347de18b248069
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
lustre/include/lprocfs_status.h
lustre/obdclass/lprocfs_status.c
lustre/obdclass/obd_sysfs.c
lustre/tests/sanity.sh