Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sparc64/sparc64 print pid, lid and p_comm in some d...



details:   https://anonhg.NetBSD.org/src/rev/7724d418d918
branches:  trunk
changeset: 749538:7724d418d918
user:      mrg <mrg%NetBSD.org@localhost>
date:      Wed Dec 02 07:34:57 2009 +0000

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

diffstat:

 sys/arch/sparc64/sparc64/trap.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r 650c343d5a7f -r 7724d418d918 sys/arch/sparc64/sparc64/trap.c
--- a/sys/arch/sparc64/sparc64/trap.c   Wed Dec 02 02:07:02 2009 +0000
+++ b/sys/arch/sparc64/sparc64/trap.c   Wed Dec 02 07:34:57 2009 +0000
@@ -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)



Home | Main Index | Thread Index | Old Index