Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F173597551
D49315.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D49315.diff
View Options
diff --git a/sys/kern/kern_mutex.c b/sys/kern/kern_mutex.c
--- a/sys/kern/kern_mutex.c
+++ b/sys/kern/kern_mutex.c
@@ -287,7 +287,7 @@
("mtx_lock() by idle thread %p on mutex %p @ %s:%d",
curthread, m, file, line));
KASSERT(m->mtx_lock != MTX_DESTROYED,
- ("mtx_lock() of destroyed mutex @ %s:%d", file, line));
+ ("mtx_lock() of destroyed mutex %p @ %s:%d", m, file, line));
KASSERT(LOCK_CLASS(&m->lock_object) != &lock_class_mtx_spin,
("mtx_lock() of spin mutex %s @ %s:%d", m->lock_object.lo_name,
file, line));
@@ -316,7 +316,7 @@
m = mtxlock2mtx(c);
KASSERT(m->mtx_lock != MTX_DESTROYED,
- ("mtx_unlock() of destroyed mutex @ %s:%d", file, line));
+ ("mtx_unlock() of destroyed mutex %p @ %s:%d", m, file, line));
KASSERT(LOCK_CLASS(&m->lock_object) != &lock_class_mtx_spin,
("mtx_unlock() of spin mutex %s @ %s:%d", m->lock_object.lo_name,
file, line));
@@ -345,7 +345,7 @@
m = mtxlock2mtx(c);
KASSERT(m->mtx_lock != MTX_DESTROYED,
- ("mtx_lock_spin() of destroyed mutex @ %s:%d", file, line));
+ ("mtx_lock_spin() of destroyed mutex %p @ %s:%d", m, file, line));
KASSERT(LOCK_CLASS(&m->lock_object) != &lock_class_mtx_sleep,
("mtx_lock_spin() of sleep mutex %s @ %s:%d",
m->lock_object.lo_name, file, line));
@@ -386,7 +386,8 @@
m = mtxlock2mtx(c);
KASSERT(m->mtx_lock != MTX_DESTROYED,
- ("mtx_trylock_spin() of destroyed mutex @ %s:%d", file, line));
+ ("mtx_trylock_spin() of destroyed mutex %p @ %s:%d", m, file,
+ line));
KASSERT(LOCK_CLASS(&m->lock_object) != &lock_class_mtx_sleep,
("mtx_trylock_spin() of sleep mutex %s @ %s:%d",
m->lock_object.lo_name, file, line));
@@ -411,7 +412,8 @@
m = mtxlock2mtx(c);
KASSERT(m->mtx_lock != MTX_DESTROYED,
- ("mtx_unlock_spin() of destroyed mutex @ %s:%d", file, line));
+ ("mtx_unlock_spin() of destroyed mutex %p @ %s:%d", m, file,
+ line));
KASSERT(LOCK_CLASS(&m->lock_object) != &lock_class_mtx_sleep,
("mtx_unlock_spin() of sleep mutex %s @ %s:%d",
m->lock_object.lo_name, file, line));
@@ -449,7 +451,7 @@
("mtx_trylock() by idle thread %p on mutex %p @ %s:%d",
curthread, m, file, line));
KASSERT(m->mtx_lock != MTX_DESTROYED,
- ("mtx_trylock() of destroyed mutex @ %s:%d", file, line));
+ ("mtx_trylock() of destroyed mutex %p @ %s:%d", m, file, line));
KASSERT(LOCK_CLASS(&m->lock_object) != &lock_class_mtx_spin,
("mtx_trylock() of spin mutex %s @ %s:%d", m->lock_object.lo_name,
file, line));
@@ -826,7 +828,7 @@
{
KASSERT(m->mtx_lock != MTX_DESTROYED,
- ("thread_lock() of destroyed mutex @ %s:%d", file, line));
+ ("thread_lock() of destroyed mutex %p @ %s:%d", m, file, line));
KASSERT(LOCK_CLASS(&m->lock_object) != &lock_class_mtx_sleep,
("thread_lock() of sleep mutex %s @ %s:%d",
m->lock_object.lo_name, file, line));
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Sep 28, 2:18 AM (16 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39777434
Default Alt Text
D49315.diff (2 KB)
Attached To
Mode
D49315: mtx: Include the mutex pointer in the panic message for destroyed locks
Attached
Detach File
Event Timeline
Log In to Comment