summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-01-29 08:43:16 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-01-29 08:51:47 +0100
commitaa4f504b200328f21d0b7ab2dc200912d8590f87 (patch)
treec06c30ff527cc4112489ff772555b27df4481627
parenta27a1ba4f5305f9cc5ac3b043008a7346c18ebe9 (diff)
downloadrtems-libbsd-aa4f504b200328f21d0b7ab2dc200912d8590f87.tar.bz2
ZONE(9): Enable UMA sysctls
-rw-r--r--freebsd/sys/kern/kern_mib.c2
-rw-r--r--freebsd/sys/vm/uma_core.c6
2 files changed, 3 insertions, 5 deletions
diff --git a/freebsd/sys/kern/kern_mib.c b/freebsd/sys/kern/kern_mib.c
index 8d19a3b7..a8215b39 100644
--- a/freebsd/sys/kern/kern_mib.c
+++ b/freebsd/sys/kern/kern_mib.c
@@ -61,9 +61,9 @@ SYSCTL_NODE(, 0, sysctl, CTLFLAG_RW, 0,
"Sysctl internal magic");
SYSCTL_NODE(, CTL_KERN, kern, CTLFLAG_RW|CTLFLAG_CAPRD, 0,
"High kernel, proc, limits &c");
-#ifndef __rtems__
SYSCTL_NODE(, CTL_VM, vm, CTLFLAG_RW, 0,
"Virtual memory");
+#ifndef __rtems__
SYSCTL_NODE(, CTL_VFS, vfs, CTLFLAG_RW, 0,
"File system");
#endif /* __rtems__ */
diff --git a/freebsd/sys/vm/uma_core.c b/freebsd/sys/vm/uma_core.c
index 57155ae3..e147c2a7 100644
--- a/freebsd/sys/vm/uma_core.c
+++ b/freebsd/sys/vm/uma_core.c
@@ -261,20 +261,16 @@ static inline void keg_relock(uma_keg_t keg, uma_zone_t zone);
void uma_print_zone(uma_zone_t);
void uma_print_stats(void);
-#ifndef __rtems__
static int sysctl_vm_zone_count(SYSCTL_HANDLER_ARGS);
static int sysctl_vm_zone_stats(SYSCTL_HANDLER_ARGS);
-#endif
SYSINIT(uma_startup3, SI_SUB_VM_CONF, SI_ORDER_SECOND, uma_startup3, NULL);
-#ifndef __rtems__
SYSCTL_PROC(_vm, OID_AUTO, zone_count, CTLFLAG_RD|CTLTYPE_INT,
0, 0, sysctl_vm_zone_count, "I", "Number of UMA zones");
SYSCTL_PROC(_vm, OID_AUTO, zone_stats, CTLFLAG_RD|CTLTYPE_STRUCT,
0, 0, sysctl_vm_zone_stats, "s,struct uma_type_header", "Zone Stats");
-#endif /* __rtems__ */
/*
* This routine checks to see whether or not it's safe to enable buckets.
@@ -3270,6 +3266,7 @@ uma_zone_sumstat(uma_zone_t z, int *cachefreep, u_int64_t *allocsp,
*sleepsp = sleeps;
}
#endif /* DDB */
+#endif /* __rtems__ */
static int
sysctl_vm_zone_count(SYSCTL_HANDLER_ARGS)
@@ -3391,6 +3388,7 @@ skip:
return (error);
}
+#ifndef __rtems__
#ifdef DDB
DB_SHOW_COMMAND(uma, db_show_uma)
{