kern_mutex.c (171488) | kern_mutex.c (173600) |
---|---|
1/*- 2 * Copyright (c) 1998 Berkeley Software Design, Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 20 unchanged lines hidden (view full) --- 29 * and BSDI $Id: synch_machdep.c,v 2.3.2.39 2000/04/27 03:10:25 cp Exp $ 30 */ 31 32/* 33 * Machine independent bits of mutex implementation. 34 */ 35 36#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1998 Berkeley Software Design, Inc. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 20 unchanged lines hidden (view full) --- 29 * and BSDI $Id: synch_machdep.c,v 2.3.2.39 2000/04/27 03:10:25 cp Exp $ 30 */ 31 32/* 33 * Machine independent bits of mutex implementation. 34 */ 35 36#include <sys/cdefs.h> |
37__FBSDID("$FreeBSD: head/sys/kern/kern_mutex.c 171488 2007-07-18 20:46:06Z jeff $"); | 37__FBSDID("$FreeBSD: head/sys/kern/kern_mutex.c 173600 2007-11-14 06:21:24Z julian $"); |
38 39#include "opt_adaptive_mutexes.h" 40#include "opt_ddb.h" 41#include "opt_global.h" 42#include "opt_sched.h" 43 44#include <sys/param.h> 45#include <sys/systm.h> --- 768 unchanged lines hidden (view full) --- 814 db_printf(", CONTESTED"); 815 if (m->mtx_lock & MTX_RECURSED) 816 db_printf(", RECURSED"); 817 } 818 db_printf("}\n"); 819 if (!mtx_unowned(m) && !mtx_destroyed(m)) { 820 td = mtx_owner(m); 821 db_printf(" owner: %p (tid %d, pid %d, \"%s\")\n", td, | 38 39#include "opt_adaptive_mutexes.h" 40#include "opt_ddb.h" 41#include "opt_global.h" 42#include "opt_sched.h" 43 44#include <sys/param.h> 45#include <sys/systm.h> --- 768 unchanged lines hidden (view full) --- 814 db_printf(", CONTESTED"); 815 if (m->mtx_lock & MTX_RECURSED) 816 db_printf(", RECURSED"); 817 } 818 db_printf("}\n"); 819 if (!mtx_unowned(m) && !mtx_destroyed(m)) { 820 td = mtx_owner(m); 821 db_printf(" owner: %p (tid %d, pid %d, \"%s\")\n", td, |
822 td->td_tid, td->td_proc->p_pid, td->td_proc->p_comm); | 822 td->td_tid, td->td_proc->p_pid, td->td_name); |
823 if (mtx_recursed(m)) 824 db_printf(" recursed: %d\n", m->mtx_recurse); 825 } 826} 827#endif | 823 if (mtx_recursed(m)) 824 db_printf(" recursed: %d\n", m->mtx_recurse); 825 } 826} 827#endif |