Whamcloud - gitweb
LU-13595 scripts: Add a debug option to lustre_rmmod 41/38941/5
authorEtienne AUJAMES <eaujames@ddn.com>
Thu, 11 Jun 2020 14:38:18 +0000 (16:38 +0200)
committerOleg Drokin <green@whamcloud.com>
Sun, 28 Jun 2020 02:48:38 +0000 (02:48 +0000)
commit02e413eb55ab0c52f6ece6a33db4ac6157835eb7
tree869b7b03837e4fec4bfbc1b5e8c5c502550c3f50
parenta7c9aba5eb96dd1e53899108a65af381b49e657b
LU-13595 scripts: Add a debug option to lustre_rmmod

The option is "-d" or "--debug-kernel", it uses "lctl debug_kernel" to
get debug message before unload libcfs.
For each module the script add a debug mark before unloading.

Example:
$ lustre_rmmod -d > /tmp/lustre_rmmod.log
$ lustre_rmmod -d lustre lnet > /tmp/lustre_rmmod2.log

Test-Parameters: trivial
Signed-off-by: Etienne AUJAMES <eaujames@ddn.com>
Change-Id: I6e44a24f2e786c08faf1db27de94e0f88ca65dc7
Reviewed-on: https://review.whamcloud.com/38941
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Olaf Faaland-LLNL <faaland1@llnl.gov>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/scripts/lustre_rmmod