Module Name:    src
Committed By:   mrg
Date:           Wed Dec  2 07:34:57 UTC 2009

Modified Files:
        src/sys/arch/sparc64/sparc64: trap.c

Log Message:
print pid, lid and p_comm in some diag messages that indicate killed processes.


To generate a diff of this commit:
cvs rdiff -u -r1.159 -r1.160 src/sys/arch/sparc64/sparc64/trap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sparc64/sparc64/trap.c
diff -u src/sys/arch/sparc64/sparc64/trap.c:1.159 src/sys/arch/sparc64/sparc64/trap.c:1.160
--- src/sys/arch/sparc64/sparc64/trap.c:1.159	Sat Nov 21 04:16:52 2009
+++ src/sys/arch/sparc64/sparc64/trap.c	Wed Dec  2 07:34:57 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: trap.c,v 1.159 2009/11/21 04:16:52 rmind Exp $ */
+/*	$NetBSD: trap.c,v 1.160 2009/12/02 07:34:57 mrg Exp $ */
 
 /*
  * Copyright (c) 1996-2002 Eduardo Horvath.  All rights reserved.
@@ -50,7 +50,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.159 2009/11/21 04:16:52 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.160 2009/12/02 07:34:57 mrg Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -620,7 +620,8 @@
 	case T_INST_EXCEPT:
 	case T_TEXTFAULT:
 		/* This is not an MMU issue!!!! */
-		printf("trap: textfault at %lx!! sending SIGILL due to trap %d: %s\n", 
+		printf("trap: pid=%d.%d comm=%s textfault at %lx!! sending SIGILL due to trap %d: %s\n", 
+		       l->l_proc->p_pid, l->l_lid, l->l_proc->p_comm,
 		       pc, type, type < N_TRAP_TYPES ? trap_type[type] : T);
 #if defined(DDB) && defined(DEBUG)
 		if (trapdebug & TDB_STOPSIG)
@@ -634,7 +635,8 @@
 		break;
 
 	case T_PRIVINST:
-		printf("trap: privinst!! sending SIGILL due to trap %d: %s\n", 
+		printf("trap: pid=%d.%d comm=%s privinst!! sending SIGILL due to trap %d: %s\n", 
+		       l->l_proc->p_pid, l->l_lid, l->l_proc->p_comm,
 		       type, type < N_TRAP_TYPES ? trap_type[type] : T);
 #if defined(DDB) && defined(DEBUG)
 		if (trapdebug & TDB_STOPSIG)

Reply via email to