git: dmsg - Formalize most of the debugging output, cleanup, fix uninit bug

Matthew Dillon dillon at crater.dragonflybsd.org
Mon Mar 9 17:16:30 PDT 2015


commit 5ab1caedae6de6fd12c39e29342eacc1a072b682
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Mon Mar 9 17:09:20 2015 -0700

    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().

Summary of changes:
 lib/libdmsg/crypto.c       | 111 +++++++++----------
 lib/libdmsg/dmsg.h         |  11 ++
 lib/libdmsg/msg.c          | 263 +++++++++++++++++++++++----------------------
 lib/libdmsg/msg_lnk.c      |  92 ++++++++++------
 lib/libdmsg/service.c      |   6 +-
 lib/libdmsg/subs.c         |  11 +-
 sbin/hammer2/cmd_debug.c   |  21 +++-
 sbin/hammer2/cmd_service.c |   7 +-
 sys/dev/disk/xdisk/xdisk.c |  91 ++++++++++------
 sys/kern/kern_dmsg.c       | 257 ++++++++++++++++++++++++++++---------------
 10 files changed, 518 insertions(+), 352 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5ab1caedae6de6fd12c39e29342eacc1a072b682


-- 
DragonFly BSD source repository



More information about the Commits mailing list