Whamcloud - gitweb
LU-15642 obdclass: use consistent stats units 33/46833/9
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 16 Mar 2022 04:51:55 +0000 (22:51 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 1 Sep 2022 05:53:48 +0000 (05:53 +0000)
commitb515c6ec2ab84598c77c65eb78f1afd5e67b1ede
tree16581a99ef733dd38e4e3ffa2bb64c75e3797910
parent84b1ca8618129d4e337cadc87c12e44991025a97
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.

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I25f31478f238072ddbf9a3918cd43bb08c3ebbe5
Reviewed-on: https://review.whamcloud.com/46833
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Ben Evans <beevans@whamcloud.com>
Reviewed-by: Oleg Drokin <green@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