Date: Tue, 13 Dec 2005 23:14:35 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_mutex.c kern_sx.c src/sys/sys lock.h Message-ID: <200512132314.jBDNEaT0092314@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200512132314.jBDNEaT0092314>