aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/lock.h
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2009-08-14 10:57:57 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2009-08-14 10:57:57 +0000
commitaabd624cf40d266ee368b268fada2e4534dcd9c9 (patch)
tree6a2e9fd4fd3f90f45a1ca02d141c4a76542ceae9 /sys/sys/lock.h
parent8f408451517a56ea44b3fbffbd329f49de534aea (diff)
downloadsrc-aabd624cf40d266ee368b268fada2e4534dcd9c9.tar.gz
src-aabd624cf40d266ee368b268fada2e4534dcd9c9.zip
Add the address of the lock to the KTR_LOCK trace.
Tested by: pho Approved by: re (rwatson)
Notes
Notes: svn path=/head/; revision=196204
Diffstat (limited to 'sys/sys/lock.h')
-rw-r--r--sys/sys/lock.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/sys/lock.h b/sys/sys/lock.h
index 9e47ab4b41db..01c70ffc66cc 100644
--- a/sys/sys/lock.h
+++ b/sys/sys/lock.h
@@ -155,16 +155,16 @@ struct lock_class {
#define LOCK_LOG_LOCK(opname, lo, flags, recurse, file, line) do { \
if (LOCK_LOG_TEST((lo), (flags))) \
- CTR5(KTR_LOCK, opname " (%s) %s r = %d at %s:%d", \
+ CTR6(KTR_LOCK, opname " (%s) %s %p r = %d at %s:%d", \
LOCK_CLASS(lo)->lc_name, (lo)->lo_name, \
- (u_int)(recurse), (file), (line)); \
+ (lo), (u_int)(recurse), (file), (line)); \
} while (0)
#define LOCK_LOG_TRY(opname, lo, flags, result, file, line) do { \
if (LOCK_LOG_TEST((lo), (flags))) \
- CTR5(KTR_LOCK, "TRY_" opname " (%s) %s result=%d at %s:%d",\
+ CTR6(KTR_LOCK, "TRY_" opname " (%s) %s %p result=%d at %s:%d",\
LOCK_CLASS(lo)->lc_name, (lo)->lo_name, \
- (u_int)(result), (file), (line)); \
+ (lo), (u_int)(result), (file), (line)); \
} while (0)
#define LOCK_LOG_INIT(lo, flags) do { \