diff options
author | kmacy <kmacy@FreeBSD.org> | 2006-11-13 05:41:46 +0000 |
---|---|---|
committer | kmacy <kmacy@FreeBSD.org> | 2006-11-13 05:41:46 +0000 |
commit | ec9503cd0475c67b81826cc55a0dea1cf8f81775 (patch) | |
tree | faa5c9764e0735ad055fed3a6440173e14455120 /sys/kern/subr_lock.c | |
parent | 3434de5c13263fd8a5698f3c7a01796478e4032a (diff) | |
download | FreeBSD-src-ec9503cd0475c67b81826cc55a0dea1cf8f81775.zip FreeBSD-src-ec9503cd0475c67b81826cc55a0dea1cf8f81775.tar.gz |
track lock class name in a way that doesn't break WITNESS
Diffstat (limited to 'sys/kern/subr_lock.c')
-rw-r--r-- | sys/kern/subr_lock.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/kern/subr_lock.c b/sys/kern/subr_lock.c index 94e7d88..adf5e59 100644 --- a/sys/kern/subr_lock.c +++ b/sys/kern/subr_lock.c @@ -58,6 +58,7 @@ struct lock_class *lock_classes[LOCK_CLASS_MAX + 1] = { &lock_class_mtx_sleep, &lock_class_sx, &lock_class_rw, + &lock_class_lockmgr, }; #ifdef LOCK_PROFILING @@ -305,9 +306,9 @@ void _lock_profile_update_wait(struct lock_object *lo, uint64_t waitstart) } mpp->file = p; mpp->line = l->lpo_lineno; - mpp->name = lo->lo_name; - mpp->type = lo->lo_type; mpp->namehash = l->lpo_namehash; + mpp->type = l->lpo_type; + mpp->name = lo->lo_name; if (collision) ++lock_prof_collisions; /* We might have raced someone else but who cares, they'll try again next time */ @@ -368,7 +369,7 @@ void _lock_profile_release_lock(struct lock_object *lo) mpp->file = p; mpp->line = l->lpo_lineno; mpp->namehash = l->lpo_namehash; - mpp->type = lo->lo_type; + mpp->type = l->lpo_type; mpp->name = lo->lo_name; if (collision) |