diff options
author | kmacy <kmacy@FreeBSD.org> | 2006-11-12 03:30:01 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2006-11-12 03:30:01 +0000 |
commit | b082a8c58a21f165a526c2a89b8848231efe990e (patch) | |
tree | e382e5de37acf6bd4587afc7bf1c65972d05ebfc /sys/kern/kern_lock.c | |
parent | 0c1c40362e1acab699a27fb1397a926eabaf84f7 (diff) | |
download | FreeBSD-src-b082a8c58a21f165a526c2a89b8848231efe990e.zip FreeBSD-src-b082a8c58a21f165a526c2a89b8848231efe990e.tar.gz |
show lock class in profiling output for default case where type is not specified when initializing the lock
Approved by: scottl (standing in for mentor rwatson)
Diffstat (limited to 'sys/kern/kern_lock.c')
-rw-r--r-- | sys/kern/kern_lock.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_lock.c b/sys/kern/kern_lock.c index 96936c5..952167a 100644 --- a/sys/kern/kern_lock.c +++ b/sys/kern/kern_lock.c @@ -166,6 +166,8 @@ _lockmgr(struct lock *lkp, int flags, struct mtx *interlkp, thr = td; lock_profile_waitstart(&waitstart); + + lkp->lk_object.lo_type = "lockmgr"; if ((flags & LK_INTERNAL) == 0) mtx_lock(lkp->lk_interlock); CTR6(KTR_LOCK, |