Date: Mon, 14 Aug 2006 17:27:15 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 103879 for review Message-ID: <200608141727.k7EHRFRN011071@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=103879 Change 103879 by jhb@jhb_mutex on 2006/08/14 17:26:50 Add 'show lockmgr'. Affected files ... .. //depot/projects/smpng/sys/kern/kern_lock.c#49 edit Differences ... ==== //depot/projects/smpng/sys/kern/kern_lock.c#49 (text+ko) ==== @@ -616,4 +616,16 @@ } return (1); } + +DB_SHOW_COMMAND(lockmgr, db_show_lockmgr) +{ + struct lock *lkp; + + if (!have_addr) + return; + lkp = (struct lock *)addr; + + /* XXX: Should use db_printf(). */ + lockmgr_printinfo(lkp); +} #endif
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608141727.k7EHRFRN011071>