Module Name:    src
Committed By:   mrg
Date:           Thu Dec  1 01:59:17 UTC 2016

Modified Files:
        src/sys/uvm: uvm_stat.c

Log Message:
fix the output of ddb's "show uvmexp" and also print the
reserve_pagedaemon, reserve_kernel, and zeropages values.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/uvm/uvm_stat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/uvm/uvm_stat.c
diff -u src/sys/uvm/uvm_stat.c:1.37 src/sys/uvm/uvm_stat.c:1.38
--- src/sys/uvm/uvm_stat.c:1.37	Tue May 17 04:18:07 2011
+++ src/sys/uvm/uvm_stat.c	Thu Dec  1 01:59:17 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_stat.c,v 1.37 2011/05/17 04:18:07 mrg Exp $	 */
+/*	$NetBSD: uvm_stat.c,v 1.38 2016/12/01 01:59:17 mrg Exp $	 */
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_stat.c,v 1.37 2011/05/17 04:18:07 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_stat.c,v 1.38 2016/12/01 01:59:17 mrg Exp $");
 
 #include "opt_readahead.h"
 #include "opt_ddb.h"
@@ -60,7 +60,7 @@ uvmexp_print(void (*pr)(const char *, ..
 	uvm_estimatepageable(&active, &inactive);
 
 	(*pr)("Current UVM status:\n");
-	(*pr)("  pagesize=%d (0x%x), pagemask=0x%x, pageshift=%d\n, ncolors=%d",
+	(*pr)("  pagesize=%d (0x%x), pagemask=0x%x, pageshift=%d, ncolors=%d\n",
 	    uvmexp.pagesize, uvmexp.pagesize, uvmexp.pagemask,
 	    uvmexp.pageshift, uvmexp.ncolors);
 	(*pr)("  %d VM pages: %d active, %d inactive, %d wired, %d free\n",
@@ -70,6 +70,8 @@ uvmexp_print(void (*pr)(const char *, ..
 	    uvmexp.anonpages, uvmexp.filepages, uvmexp.execpages);
 	(*pr)("  freemin=%d, free-target=%d, wired-max=%d\n",
 	    uvmexp.freemin, uvmexp.freetarg, uvmexp.wiredmax);
+	(*pr)("  resv-pg=%d, resv-kernel=%d, zeropages=%d\n",
+	    uvmexp.reserve_pagedaemon, uvmexp.reserve_kernel, uvmexp.zeropages);
 
 	for (CPU_INFO_FOREACH(cii, ci)) {
 		(*pr)("  cpu%u:\n", cpu_index(ci));

Reply via email to