Date: Sun, 23 Apr 2006 23:15:33 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 95962 for review Message-ID: <200604232315.k3NNFXVd050253@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=95962 Change 95962 by jb@jb_freebsd2 on 2006/04/23 23:15:25 Implement the mutex macros for ASSERT debugging. Affected files ... .. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_hacks.h#5 edit Differences ... ==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_hacks.h#5 (text+ko) ==== @@ -21,6 +21,8 @@ typedef dtrace_mutex_t kmutex_t; #define mutex_enter(_a) dtrace_mutex_lock(_a) #define mutex_exit(_a) dtrace_mutex_unlock(_a) +#define MUTEX_HELD(_a) ((_a)->dm_owner == curthread) +#define MUTEX_NOT_HELD(_a) ((_a)->dm_owner != curthread) #define crgetuid(_a) _a->cr_uid #define crgetzoneid(_a) 0
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604232315.k3NNFXVd050253>