Whamcloud - gitweb
LU-14427 libcfs: restore LNET_DUMP_ON_PANIC functionality. 88/41488/2
authorMr NeilBrown <neilb@suse.de>
Tue, 9 Feb 2021 04:30:46 +0000 (15:30 +1100)
committerOleg Drokin <green@whamcloud.com>
Sat, 13 Mar 2021 18:34:07 +0000 (18:34 +0000)
commitf9b75c5fb4d4e39759a2d3cb8e67a4312ff4ae5a
tree72f90e4c9472cdb893a28a63a8a04dea772bebd5
parent67c4cffac6dbd30ce30e1d3132b65d4e4a374dda
LU-14427 libcfs: restore LNET_DUMP_ON_PANIC functionality.

The functionality enabled by --enable-panic-dumplog was inadvertently
removed in Commit ae0704381efc ("LU-9859 libcfs: merge linux-debug.c
into debug.c")

Restore it.

While we are there, add conditional-compliation for other code that is
only needed when this is enabled.

Test-Parameters: trivial
Fixes: ae0704381efc ("LU-9859 libcfs: merge linux-debug.c into debug.c")
Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: If85882045c66e54ff8493396589d4ecbf13f8f3d
Reviewed-on: https://review.whamcloud.com/41488
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
libcfs/libcfs/debug.c
libcfs/libcfs/tracefile.c