svn commit: r359794 - stable/12/sys/kern
Jason A. Harmening
jah at FreeBSD.org
Sat Apr 11 05:12:39 UTC 2020
Author: jah
Date: Sat Apr 11 05:12:38 2020
New Revision: 359794
URL: https://svnweb.freebsd.org/changeset/base/359794
Log:
MFC r359501: deadlkres: include thread name in panic messages
Modified:
stable/12/sys/kern/kern_clock.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/kern/kern_clock.c
==============================================================================
--- stable/12/sys/kern/kern_clock.c Sat Apr 11 00:17:55 2020 (r359793)
+++ stable/12/sys/kern/kern_clock.c Sat Apr 11 05:12:38 2020 (r359794)
@@ -204,8 +204,9 @@ deadlres_td_on_lock(struct proc *p, struct thread *td,
* Accordingly with provided thresholds, this thread is stuck
* for too long on a turnstile.
*/
- panic("%s: possible deadlock detected for %p, "
- "blocked for %d ticks\n", __func__, td, tticks);
+ panic("%s: possible deadlock detected for %p (%s), "
+ "blocked for %d ticks\n", __func__,
+ td, sched_tdname(td), tticks);
}
static void
@@ -238,8 +239,9 @@ deadlres_td_sleep_q(struct proc *p, struct thread *td,
if (!strcmp(blessed[i], td->td_wmesg))
return;
- panic("%s: possible deadlock detected for %p, "
- "blocked for %d ticks\n", __func__, td, tticks);
+ panic("%s: possible deadlock detected for %p (%s), "
+ "blocked for %d ticks\n", __func__,
+ td, sched_tdname(td), tticks);
}
}
More information about the svn-src-stable
mailing list