cvs commit: src/sys/kern kern_mutex.c kern_sx.c src/sys/sys lock.h

John Baldwin jhb at FreeBSD.org
Tue Dec 13 15:14:36 PST 2005


jhb         2005-12-13 23:14:35 UTC

  FreeBSD src repository

  Modified files:
    sys/kern             kern_mutex.c kern_sx.c 
    sys/sys              lock.h 
  Log:
  Add a new 'show lock' command to ddb.  If the argument has a valid lock
  class, then it displays various information about the lock and calls a
  new function pointer in lock_class (lc_ddb_show) to dump class-specific
  information about the lock as well (such as the owner of a mutex or
  xlock'ed sx lock).  This is easier than staring at hex dumps of locks to
  figure out who owns the lock, etc.  Note that extending lock_class doesn't
  affect the ABI for any kernel modules as the only code that deals with
  lock_class structures directly is kern_mutex.c, kern_sx.c, and witness.
  
  MFC after:      1 week
  
  Revision  Changes    Path
  1.159     +73 -2     src/sys/kern/kern_mutex.c
  1.26      +37 -1     src/sys/kern/kern_sx.c
  1.54      +1 -0      src/sys/sys/lock.h


More information about the cvs-all mailing list