Source-Changes-HG archive

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

[src/trunk]: src/sys/ddb also print the LWP reference count.



details:   https://anonhg.NetBSD.org/src/rev/f8cfa7f7f5c2
branches:  trunk
changeset: 970800:f8cfa7f7f5c2
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sat Apr 04 13:59:16 2020 +0000

description:
also print the LWP reference count.

diffstat:

 sys/ddb/db_proc.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r ba974d3b4f24 -r f8cfa7f7f5c2 sys/ddb/db_proc.c
--- a/sys/ddb/db_proc.c Sat Apr 04 13:45:22 2020 +0000
+++ b/sys/ddb/db_proc.c Sat Apr 04 13:59:16 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_proc.c,v 1.11 2020/02/26 07:57:24 hikaru Exp $      */
+/*     $NetBSD: db_proc.c,v 1.12 2020/04/04 13:59:16 mlelstv Exp $     */
 
 /*-
  * Copyright (c) 2009, 2020 The NetBSD Foundation, Inc.
@@ -61,7 +61,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_proc.c,v 1.11 2020/02/26 07:57:24 hikaru Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_proc.c,v 1.12 2020/04/04 13:59:16 mlelstv Exp $");
 
 #ifndef _KERNEL
 #include <stdbool.h>
@@ -348,8 +348,8 @@
                            sizeof(cpuno), (char *)&cpuno);
                } else
                        cpuno = -1;
-               db_printf("    stat %d flags %x cpu %d pri %d \n",
-                   l.l_stat, l.l_flag, cpuno, l.l_priority);
+               db_printf("    stat %d flags %x cpu %d pri %d ref %d\n",
+                   l.l_stat, l.l_flag, cpuno, l.l_priority, l.l_refcnt);
 
                if (l.l_wchan && l.l_wmesg) {
                        db_read_string(l.l_wmesg, MAXCOMLEN, wbuf);



Home | Main Index | Thread Index | Old Index