summaryrefslogtreecommitdiff
path: root/sys/ddb/db_command.c
diff options
context:
space:
mode:
authorblymn <blymn@NetBSD.org>2008-07-10 12:42:24 +0000
committerblymn <blymn@NetBSD.org>2008-07-10 12:42:24 +0000
commit8a19e9911cd10287c0ab88a29dc2bdd1f2ded73e (patch)
treef78083402a4e203d27094b01c049035be598d398 /sys/ddb/db_command.c
parent8070795214a838ac5282c03ec1f6035c5c8e14a4 (diff)
Add a show files command that prints the vnodes associated with a
given struct proc and, if LOCKDEBUG is built in, the lock status of the uvmobject.
Diffstat (limited to 'sys/ddb/db_command.c')
-rw-r--r--sys/ddb/db_command.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/ddb/db_command.c b/sys/ddb/db_command.c
index f4b99893c14..7dcd678d268 100644
--- a/sys/ddb/db_command.c
+++ b/sys/ddb/db_command.c
@@ -1,4 +1,4 @@
-/* $NetBSD: db_command.c,v 1.116 2008/07/10 12:38:28 blymn Exp $ */
+/* $NetBSD: db_command.c,v 1.117 2008/07/10 12:42:24 blymn Exp $ */
/*
* Mach Operating System
* Copyright (c) 1991,1990 Carnegie Mellon University
@@ -58,7 +58,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.116 2008/07/10 12:38:28 blymn Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_command.c,v 1.117 2008/07/10 12:42:24 blymn Exp $");
#include "opt_ddb.h"
#include "opt_kgdb.h"
@@ -233,6 +233,9 @@ static const struct db_command db_show_cmds[] = {
"Print the struct buf at address.", "[/f] address",NULL) },
{ DDB_ADD_CMD("event", db_event_print_cmd, 0,
"Print all the non-zero evcnt(9) event counters.", "[/f]",NULL) },
+ { DDB_ADD_CMD("files", db_show_files_cmd, 0,
+ "Print the files open by process at address",
+ "[/f] address", NULL) },
{ DDB_ADD_CMD("lock", db_lock_print_cmd, 0,NULL,NULL,NULL) },
{ DDB_ADD_CMD("malloc", db_malloc_print_cmd,0,NULL,NULL,NULL) },
{ DDB_ADD_CMD("map", db_map_print_cmd, 0,