Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/uvm Add vm.min_address and vm.max_address which return V...
details: https://anonhg.NetBSD.org/src/rev/8dc7ea625b5d
branches: trunk
changeset: 327067:8dc7ea625b5d
user: matt <matt%NetBSD.org@localhost>
date: Wed Feb 26 16:11:59 2014 +0000
description:
Add vm.min_address and vm.max_address which return VM_MIN_ADDRESS and
VM_MAXUSER_ADDRESS.
diffstat:
sys/uvm/uvm_meter.c | 16 ++++++++++++++--
sys/uvm/uvm_param.h | 8 ++++++--
2 files changed, 20 insertions(+), 4 deletions(-)
diffs (67 lines):
diff -r 03ee9ca5d849 -r 8dc7ea625b5d sys/uvm/uvm_meter.c
--- a/sys/uvm/uvm_meter.c Wed Feb 26 15:35:05 2014 +0000
+++ b/sys/uvm/uvm_meter.c Wed Feb 26 16:11:59 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_meter.c,v 1.61 2014/02/25 18:30:13 pooka Exp $ */
+/* $NetBSD: uvm_meter.c,v 1.62 2014/02/26 16:11:59 matt Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_meter.c,v 1.61 2014/02/25 18:30:13 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_meter.c,v 1.62 2014/02/26 16:11:59 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -268,6 +268,18 @@
SYSCTL_DESCR("Whether try to zero pages in idle loop"),
NULL, 0, &vm_page_zero_enable, 0,
CTL_VM, CTL_CREATE, CTL_EOL);
+ sysctl_createv(clog, 0, NULL, NULL,
+ CTLFLAG_PERMANENT|CTLFLAG_IMMEDIATE,
+ CTLTYPE_LONG, "minaddress",
+ SYSCTL_DESCR("Minimum user address"),
+ NULL, VM_MINADDRESS, NULL, 0,
+ CTL_VM, VM_MINADDRESS, CTL_EOL);
+ sysctl_createv(clog, 0, NULL, NULL,
+ CTLFLAG_PERMANENT|CTLFLAG_IMMEDIATE,
+ CTLTYPE_LONG, "maxaddress",
+ SYSCTL_DESCR("Maximum user address"),
+ NULL, VM_MAXUSER_ADDRESS, NULL, 0,
+ CTL_VM, VM_MAXADDRESS, CTL_EOL);
uvmpdpol_sysctlsetup();
}
diff -r 03ee9ca5d849 -r 8dc7ea625b5d sys/uvm/uvm_param.h
--- a/sys/uvm/uvm_param.h Wed Feb 26 15:35:05 2014 +0000
+++ b/sys/uvm/uvm_param.h Wed Feb 26 16:11:59 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_param.h,v 1.33 2014/01/25 15:17:17 christos Exp $ */
+/* $NetBSD: uvm_param.h,v 1.34 2014/02/26 16:11:59 matt Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -175,8 +175,10 @@
#define VM_ANONMAX 11
#define VM_EXECMAX 12
#define VM_FILEMAX 13
+#define VM_MINADDRESS 14
+#define VM_MAXADDRESS 15
-#define VM_MAXID 14 /* number of valid vm ids */
+#define VM_MAXID 16 /* number of valid vm ids */
#define CTL_VM_NAMES { \
{ 0, 0 }, \
@@ -193,6 +195,8 @@
{ "anonmax", CTLTYPE_INT }, \
{ "execmax", CTLTYPE_INT }, \
{ "filemax", CTLTYPE_INT }, \
+ { "minaddress", CTLTYPE_LONG }, \
+ { "maxaddress", CTLTYPE_LONG }, \
}
#ifndef ASSEMBLER
Home |
Main Index |
Thread Index |
Old Index