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);
        }
 }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to