Whamcloud - gitweb
LU-11698 libcfs: Add checksum speed under /sys/fs 43/43943/11
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Tue, 8 Jun 2021 09:32:01 +0000 (05:32 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 8 Jul 2021 02:06:13 +0000 (02:06 +0000)
commitd775f9ae37975c853984b67f6d1a21e6ec8a8c3d
treefdf0473568034c85a22d251840db1e65d334dbe8
parent27214876fcdfbda016c920bce4ab1da800fcda4b
LU-11698 libcfs: Add checksum speed under /sys/fs

This patch adds total of registered checksum and all
registered checksum names along with their speed under
/sys/kernel/debug/lustre/checksum_speed

TestCase sanity/77m added.

Sample output:
$ lctl get_param checksum_speed
checksum_speed=adler32: 1955
crc32: 2423
crc32c: 14035

Test-Parameters: trivial
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: If125032e35bfd9221eb66e6f77bf7e3753ffcc0f
Reviewed-on: https://review.whamcloud.com/43943
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/include/libcfs/libcfs_crypto.h
libcfs/libcfs/linux-crypto.c
lustre/obdclass/obd_sysfs.c
lustre/tests/sanity.sh