Whamcloud - gitweb
LU-15642 obdclass: use consistent stats units
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 16 Mar 2022 04:51:55 +0000 (22:51 -0600)
committerAndreas Dilger <adilger@whamcloud.com>
Thu, 11 May 2023 00:42:43 +0000 (00:42 +0000)
commit5a5a3a347f1d1931917729d7b5fd6ffd197a43a5
tree10bc7a8261734afe188945136620cc4634de0872
parent5efb892396e394e71340ac8c2c37abcb419327a1
LU-15642 obdclass: use consistent stats units

Use consistent stats units, since some were "usec" and others "usecs".
Most stats already use LPROCFS_TYPE_* to encode type stats type, so
use this to provide units for those stats, and only explicitly provide
strings for the few stats that don't match the commonly-used units.
This also reduces the number of repeat static strings in the modules.

Lustre-change: https://review.whamcloud.com/46833
Lustre-commit: b515c6ec2ab84598c77c65eb78f1afd5e67b1ede

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I25f31478f238072ddbf9a3918cd43bb08c3ebbe5
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Ben Evans <beevans@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/49759
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
14 files changed:
lustre/include/lprocfs_status.h
lustre/ldlm/ldlm_pool.c
lustre/ldlm/ldlm_resource.c
lustre/llite/lproc_llite.c
lustre/mdt/mdt_lproc.c
lustre/mgs/lproc_mgs.c
lustre/obdclass/class_obd.c
lustre/obdclass/lprocfs_status.c
lustre/obdclass/lu_object.c
lustre/obdecho/echo.c
lustre/ofd/lproc_ofd.c
lustre/osd-ldiskfs/osd_lproc.c
lustre/osd-zfs/osd_lproc.c
lustre/ptlrpc/lproc_ptlrpc.c