Whamcloud - gitweb
LU-13238 ofd: add OFD access logs 52/37552/16
authorJohn L. Hammond <jhammond@whamcloud.com>
Tue, 28 Jan 2020 15:29:52 +0000 (09:29 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 7 May 2020 05:45:55 +0000 (05:45 +0000)
commit66172e3274ca3187edd519dd87a81a478a6d7259
tree1c1392b5aa1d103a7c7b2768d50e70cbae34f756
parentb4d061dfa6d8a80020925c20e81b26a766509bf5
LU-13238 ofd: add OFD access logs

Add access logs to OFD layer. BRW RPC handlers will record accesss to
an in memory circular buffer which may be read in userspace through
character devices (/dev/lustre-access-log/$FSNAME-OSTxxxx). A control
device (/dev/lustre-access-log/control) is added to facilitate device
discovery. A utility (ofd_access_log_reader) to discover and consume
access logs is included.

Signed-off-by: John L. Hammond <jhammond@whamcloud.com>
Change-Id: I76b78cc5075ee01f9b234e96e7a22a1bdcf2f755
Reviewed-on: https://review.whamcloud.com/37552
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Gu Zheng <gzheng@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
18 files changed:
lustre/include/uapi/linux/lustre/Makefile.am
lustre/include/uapi/linux/lustre/lustre_access_log.h [new file with mode: 0644]
lustre/ofd/Makefile.in
lustre/ofd/lproc_ofd.c
lustre/ofd/ofd_access_log.c [new file with mode: 0644]
lustre/ofd/ofd_dev.c
lustre/ofd/ofd_internal.h
lustre/ofd/ofd_io.c
lustre/ptlrpc/wirehdr.c
lustre/ptlrpc/wiretest.c
lustre/tests/sanity.sh
lustre/utils/.gitignore
lustre/utils/Makefile.am
lustre/utils/lstddef.h [new file with mode: 0644]
lustre/utils/ofd_access_log_reader.c [new file with mode: 0644]
lustre/utils/wirecheck.c
lustre/utils/wirehdr.c
lustre/utils/wiretest.c