kern_lock.c (169675) | kern_lock.c (173600) |
---|---|
1/*- 2 * Copyright (c) 1995 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Copyright (C) 1997 6 * John S. Dyson. All rights reserved. 7 * 8 * This code contains ideas from software contributed to Berkeley by --- 27 unchanged lines hidden (view full) --- 36 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 37 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 38 * SUCH DAMAGE. 39 * 40 * @(#)kern_lock.c 8.18 (Berkeley) 5/21/95 41 */ 42 43#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1995 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Copyright (C) 1997 6 * John S. Dyson. All rights reserved. 7 * 8 * This code contains ideas from software contributed to Berkeley by --- 27 unchanged lines hidden (view full) --- 36 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 37 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 38 * SUCH DAMAGE. 39 * 40 * @(#)kern_lock.c 8.18 (Berkeley) 5/21/95 41 */ 42 43#include <sys/cdefs.h> |
44__FBSDID("$FreeBSD: head/sys/kern/kern_lock.c 169675 2007-05-18 15:04:59Z jhb $"); | 44__FBSDID("$FreeBSD: head/sys/kern/kern_lock.c 173600 2007-11-14 06:21:24Z julian $"); |
45 46#include "opt_ddb.h" 47#include "opt_global.h" 48 49#include <sys/param.h> 50#include <sys/kdb.h> 51#include <sys/kernel.h> 52#include <sys/ktr.h> --- 650 unchanged lines hidden (view full) --- 703 db_printf(" lock type: %s\n", lkp->lk_wmesg); 704 db_printf(" state: "); 705 if (lkp->lk_sharecount) 706 db_printf("SHARED (count %d)\n", lkp->lk_sharecount); 707 else if (lkp->lk_flags & LK_HAVE_EXCL) { 708 td = lkp->lk_lockholder; 709 db_printf("EXCL (count %d) %p ", lkp->lk_exclusivecount, td); 710 db_printf("(tid %d, pid %d, \"%s\")\n", td->td_tid, | 45 46#include "opt_ddb.h" 47#include "opt_global.h" 48 49#include <sys/param.h> 50#include <sys/kdb.h> 51#include <sys/kernel.h> 52#include <sys/ktr.h> --- 650 unchanged lines hidden (view full) --- 703 db_printf(" lock type: %s\n", lkp->lk_wmesg); 704 db_printf(" state: "); 705 if (lkp->lk_sharecount) 706 db_printf("SHARED (count %d)\n", lkp->lk_sharecount); 707 else if (lkp->lk_flags & LK_HAVE_EXCL) { 708 td = lkp->lk_lockholder; 709 db_printf("EXCL (count %d) %p ", lkp->lk_exclusivecount, td); 710 db_printf("(tid %d, pid %d, \"%s\")\n", td->td_tid, |
711 td->td_proc->p_pid, td->td_proc->p_comm); | 711 td->td_proc->p_pid, td->td_name); |
712 } else 713 db_printf("UNLOCKED\n"); 714 if (lkp->lk_waitcount > 0) 715 db_printf(" waiters: %d\n", lkp->lk_waitcount); 716} 717#endif | 712 } else 713 db_printf("UNLOCKED\n"); 714 if (lkp->lk_waitcount > 0) 715 db_printf(" waiters: %d\n", lkp->lk_waitcount); 716} 717#endif |