Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Apr 2020 05:12:38 +0000 (UTC)
From:      "Jason A. Harmening" <jah@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r359794 - stable/12/sys/kern
Message-ID:  <202004110512.03B5Ccrm081877@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 	}
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202004110512.03B5Ccrm081877>