diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2004-07-20 23:47:09 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2004-07-20 23:47:09 +0000 |
commit | eb833e87668c2e29e560a558673f37ed802ef6d9 (patch) | |
tree | 18764c51ea93e84bedfe6f51a26317dcdff7b59b /sys | |
parent | b0b87d843a4e9621c18225e6a3e5bbdf2136ebee (diff) |
ifdef DDB a few functions only used (or usable) from DDB.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/subr_pool.c | 6 | ||||
-rw-r--r-- | sys/sys/pool.h | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/sys/kern/subr_pool.c b/sys/kern/subr_pool.c index 5c8a37b3a50..56cb0a1d295 100644 --- a/sys/kern/subr_pool.c +++ b/sys/kern/subr_pool.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_pool.c,v 1.43 2004/06/24 19:35:24 tholo Exp $ */ +/* $OpenBSD: subr_pool.c,v 1.44 2004/07/20 23:47:08 art Exp $ */ /* $NetBSD: subr_pool.c,v 1.61 2001/09/26 07:14:56 chs Exp $ */ /*- @@ -171,8 +171,10 @@ int pool_chk_page(struct pool *, const char *, struct pool_item_header *); void *pool_allocator_alloc(struct pool *, int); void pool_allocator_free(struct pool *, void *); +#ifdef DDB void pool_print_pagelist(struct pool_pagelist *, int (*)(const char *, ...)); void pool_print1(struct pool *, const char *, int (*)(const char *, ...)); +#endif /* @@ -1367,6 +1369,7 @@ pool_drain(void *arg) splx(s); } +#ifdef DDB /* * Diagnostic helpers. */ @@ -1573,6 +1576,7 @@ out: simple_unlock(&pp->pr_slock); return (r); } +#endif /* * pool_cache_init: diff --git a/sys/sys/pool.h b/sys/sys/pool.h index cdf7c226ee1..0f246f99647 100644 --- a/sys/sys/pool.h +++ b/sys/sys/pool.h @@ -1,4 +1,4 @@ -/* $OpenBSD: pool.h,v 1.16 2004/06/02 22:17:22 tedu Exp $ */ +/* $OpenBSD: pool.h,v 1.17 2004/07/20 23:47:08 art Exp $ */ /* $NetBSD: pool.h,v 1.27 2001/06/06 22:00:17 rafal Exp $ */ /*- @@ -227,13 +227,14 @@ void pool_sethiwat(struct pool *, int); int pool_sethardlimit(struct pool *, unsigned, const char *, int); void pool_drain(void *); +#ifdef DDB /* * Debugging and diagnostic aides. */ -void pool_print(struct pool *, const char *); void pool_printit(struct pool *, const char *, int (*)(const char *, ...)); int pool_chk(struct pool *, const char *); +#endif /* * Pool cache routines. |