dmsg - Formalize most of the debugging output, cleanup, fix uninit bug
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 10 Mar 2015 00:09:20 +0000 (17:09 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 10 Mar 2015 00:09:20 +0000 (17:09 -0700)
commit5ab1caedae6de6fd12c39e29342eacc1a072b682
tree942197832e76c5e34345744675b8d469ffc6b029
parent43a7f9ab8995e4a9e00d6c76d6f61b7d5f707d00
dmsg - Formalize most of the debugging output, cleanup, fix uninit bug

* Macroize and formalize most of the debugging output.

* Add LNK_PING support.

* Fix a bug in kdmsg_iocom_uninit().  The RX thread can stall reading
  from the pipe and never wakeup to see the KILLRX flag if no traffic
  comes in.

  To deal with this kdmsg_iocom_uninit() sends a LNK_PING over the link,
  then gives the threads 10 seconds to shutdown nicely.  If they do not
  the pipe descriptor is not-so-nicely shutdown().
lib/libdmsg/crypto.c
lib/libdmsg/dmsg.h
lib/libdmsg/msg.c
lib/libdmsg/msg_lnk.c
lib/libdmsg/service.c
lib/libdmsg/subs.c
sbin/hammer2/cmd_debug.c
sbin/hammer2/cmd_service.c
sys/dev/disk/xdisk/xdisk.c
sys/kern/kern_dmsg.c