diff options
author | 2001-01-04 06:03:59 +0000 | |
---|---|---|
committer | 2001-01-04 06:03:59 +0000 | |
commit | cea9bb5fe59e806f409a3440be44097566e058c5 (patch) | |
tree | 1783f5e40f24b51f021e988addeaa587475fc67a | |
parent | Y2K fix for TODC - Submitted by Bob Harbour. Thanks Bob! (diff) | |
download | wireguard-openbsd-cea9bb5fe59e806f409a3440be44097566e058c5.tar.xz wireguard-openbsd-cea9bb5fe59e806f409a3440be44097566e058c5.zip |
kmembuckets sysctl
-rw-r--r-- | sys/sys/malloc.h | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/sys/sys/malloc.h b/sys/sys/malloc.h index 0dceac1a51a..218baa62555 100644 --- a/sys/sys/malloc.h +++ b/sys/sys/malloc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: malloc.h,v 1.32 2001/01/03 19:19:52 angelos Exp $ */ +/* $OpenBSD: malloc.h,v 1.33 2001/01/04 06:03:59 angelos Exp $ */ /* $NetBSD: malloc.h,v 1.39 1998/07/12 19:52:01 augustss Exp $ */ /* @@ -40,17 +40,25 @@ #define _SYS_MALLOC_H_ #define KERN_MALLOC_BUCKETS 1 -#define KERN_MALLOC_CALLS 2 -#define KERN_MALLOC_ALLOC 3 -#define KERN_MALLOC_FREE 4 -#define KERN_MALLOC_ELEMENTS 5 -#define KERN_MALLOC_HIWAT 6 -#define KERN_MALLOC_COULDFREE 7 -#define KERN_MALLOC_MAXID 8 +#define KERN_MALLOC_BUCKET 2 +#define KERN_MALLOC_MAXID 3 + +#define KERN_MALLOC_CALLS 1 +#define KERN_MALLOC_ALLOC 2 +#define KERN_MALLOC_FREE 3 +#define KERN_MALLOC_ELEMENTS 4 +#define KERN_MALLOC_HIWAT 5 +#define KERN_MALLOC_COULDFREE 6 +#define KERN_MALLOC_BUCKET_MAXID 7 #define CTL_KERN_MALLOC_NAMES { \ {0, 0 }, \ { "buckets", CTLTYPE_STRING }, \ + { "bucket", CTLTYPE_NODE }, \ +} + +#define CTL_KERN_MALLOC_BUCKET_NAMES { \ + { 0, 0 }, \ { "calls", CTLTYPE_QUAD }, \ { "total_allocated", CTLTYPE_QUAD }, \ { "total_free", CTLTYPE_QUAD }, \ |