diff options
author | bde <bde@FreeBSD.org> | 1996-09-14 10:53:48 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-09-14 10:53:48 +0000 |
commit | be288921b45d5073bb512818920532b5d6380788 (patch) | |
tree | b1186862e529ef12f30328de53e6db11cc3bf46c /sys/kern | |
parent | 6145ccc494dd78b38c63342fcc1fbcd59fd4eff9 (diff) | |
download | FreeBSD-src-be288921b45d5073bb512818920532b5d6380788.zip FreeBSD-src-be288921b45d5073bb512818920532b5d6380788.tar.gz |
Attached simple external ddb commands `show rtc', `show pgrpdump'
and `show cbstat'. The pgrpdump code was previously controlled by
`#ifdef DEBUG'.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_proc.c | 15 | ||||
-rw-r--r-- | sys/kern/subr_clist.c | 9 | ||||
-rw-r--r-- | sys/kern/tty_subr.c | 9 |
3 files changed, 15 insertions, 18 deletions
diff --git a/sys/kern/kern_proc.c b/sys/kern/kern_proc.c index c1afc92..8ed6b01 100644 --- a/sys/kern/kern_proc.c +++ b/sys/kern/kern_proc.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)kern_proc.c 8.7 (Berkeley) 2/14/95 - * $Id: kern_proc.c,v 1.20 1996/06/12 05:07:30 gpalmer Exp $ + * $Id: kern_proc.c,v 1.21 1996/07/09 16:51:10 wollman Exp $ */ #include <sys/param.h> @@ -77,9 +77,6 @@ LIST_HEAD(uihashhead, uidinfo) *uihashtbl; static u_long uihash; /* size of hash table - 1 */ static void orphanpg __P((struct pgrp *pg)); -#ifdef DEBUG -static void DDB_pgrpdump __P((void)); -#endif /* * Other process lists @@ -366,9 +363,11 @@ orphanpg(pg) } } -#ifdef DEBUG -static void -DDB_pgrpdump() +#include "opt_ddb.h" +#ifdef DDB +#include <ddb/ddb.h> + +DB_SHOW_COMMAND(pgrpdump, pgrpdump) { register struct pgrp *pgrp; register struct proc *p; @@ -391,7 +390,7 @@ DDB_pgrpdump() } } } -#endif /* DEBUG */ +#endif /* DDB */ /* * Fill in an eproc structure for the specified process. diff --git a/sys/kern/subr_clist.c b/sys/kern/subr_clist.c index 0d175fa..7c04317 100644 --- a/sys/kern/subr_clist.c +++ b/sys/kern/subr_clist.c @@ -24,13 +24,12 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: tty_subr.c,v 1.21 1996/01/04 21:12:23 wollman Exp $ + * $Id: tty_subr.c,v 1.22 1996/04/08 01:22:00 davidg Exp $ */ /* * clist support routines */ -#include "opt_ddb.h" #include <sys/param.h> #include <sys/kernel.h> @@ -57,11 +56,11 @@ static void cblock_alloc_cblocks __P((int number)); static void cblock_free __P((struct cblock *cblockp)); static void cblock_free_cblocks __P((int number)); +#include "opt_ddb.h" #ifdef DDB -static void DDB_cbstat __P((void)); +#include <ddb/ddb.h> -static void -DDB_cbstat() +DB_SHOW_COMMAND(cbstat, cbstat) { printf( "tot = %d (active = %d, free = %d (reserved = %d, slush = %d))\n", diff --git a/sys/kern/tty_subr.c b/sys/kern/tty_subr.c index 0d175fa..7c04317 100644 --- a/sys/kern/tty_subr.c +++ b/sys/kern/tty_subr.c @@ -24,13 +24,12 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: tty_subr.c,v 1.21 1996/01/04 21:12:23 wollman Exp $ + * $Id: tty_subr.c,v 1.22 1996/04/08 01:22:00 davidg Exp $ */ /* * clist support routines */ -#include "opt_ddb.h" #include <sys/param.h> #include <sys/kernel.h> @@ -57,11 +56,11 @@ static void cblock_alloc_cblocks __P((int number)); static void cblock_free __P((struct cblock *cblockp)); static void cblock_free_cblocks __P((int number)); +#include "opt_ddb.h" #ifdef DDB -static void DDB_cbstat __P((void)); +#include <ddb/ddb.h> -static void -DDB_cbstat() +DB_SHOW_COMMAND(cbstat, cbstat) { printf( "tot = %d (active = %d, free = %d (reserved = %d, slush = %d))\n", |