Date: Fri, 25 May 2018 13:59:48 +0000 (UTC) From: "Bjoern A. Zeeb" <bz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r334209 - head/sys/ddb Message-ID: <201805251359.w4PDxmTf017835@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bz Date: Fri May 25 13:59:48 2018 New Revision: 334209 URL: https://svnweb.freebsd.org/changeset/base/334209 Log: Extend show proc with reaper, sigparent, and vmspace information I have regularly needed the last couple of months. Sponsored by: iXsystems, Inc. Modified: head/sys/ddb/db_ps.c Modified: head/sys/ddb/db_ps.c ============================================================================== --- head/sys/ddb/db_ps.c Fri May 25 13:40:07 2018 (r334208) +++ head/sys/ddb/db_ps.c Fri May 25 13:59:48 2018 (r334209) @@ -46,6 +46,7 @@ __FBSDID("$FreeBSD$"); #include <vm/vm.h> #include <vm/vm_param.h> #include <vm/pmap.h> +#include <vm/vm_map.h> #include <ddb/ddb.h> @@ -452,6 +453,16 @@ DB_SHOW_COMMAND(proc, db_show_proc) } db_printf("\n"); } + db_printf(" repear: %p reapsubtree: %d\n", + p->p_reaper, p->p_reapsubtree); + db_printf(" sigparent: %d\n", p->p_sigparent); + db_printf(" vmspace: %p\n", p->p_vmspace); + db_printf(" (map %p)\n", + (p->p_vmspace != NULL) ? &p->p_vmspace->vm_map : 0); + db_printf(" (map.pmap %p)\n", + (p->p_vmspace != NULL) ? &p->p_vmspace->vm_map.pmap : 0); + db_printf(" (pmap %p)\n", + (p->p_vmspace != NULL) ? &p->p_vmspace->vm_pmap : 0); db_printf(" threads: %d\n", p->p_numthreads); FOREACH_THREAD_IN_PROC(p, td) { dumpthread(p, td, 1);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805251359.w4PDxmTf017835>