Whamcloud - gitweb
LU-15234 lnet: add mechanism for dumping lnd peer debug info 66/48566/6
authorSerguei Smirnov <ssmirnov@whamcloud.com>
Mon, 28 Feb 2022 19:04:00 +0000 (11:04 -0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 25 Oct 2022 17:25:55 +0000 (17:25 +0000)
commit950e59ced18d49e9fdd31c1e9de43b89a0bc1c1d
tree1c592b180a645fa0f4bb69b0e5a12cd18c6cf906
parent0a639a32cf32423e826420e24726912d5a39f13e
LU-15234 lnet: add mechanism for dumping lnd peer debug info

Add ability to dump lnd peer debug info:
lnetctl debug peer --nid=<nid>

The debug info is dumped to the log as D_CONSOLE by the respective
lnd and can be retrieved with "lctl dk" or seen in syslog.
This mechanism has been added for socklnd and o2iblnd peers.

Test-Parameters: trivial testlist=sanity-lnet
Signed-off-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Change-Id: Ia9c4d59143206bcb7ec43806594cf0cfaed5f0a9
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/48566
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Frank Sehr <fsehr@whamcloud.com>
Reviewed-by: Cyril Bordage <cbordage@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/klnds/o2iblnd/o2iblnd.c
lnet/klnds/socklnd/socklnd.c
lnet/utils/lnetconfig/liblnetconfig.c
lnet/utils/lnetconfig/liblnetconfig.h
lnet/utils/lnetctl.c
lustre/doc/lnetctl.8
lustre/tests/sanity-lnet.sh