Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Dec 2020 20:41:24 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r368768 - in head/sys: amd64/amd64 arm64/arm64 i386/i386 riscv/riscv
Message-ID:  <202012182041.0BIKfOXm013905@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Fri Dec 18 20:41:23 2020
New Revision: 368768
URL: https://svnweb.freebsd.org/changeset/base/368768

Log:
  Skip the vm.pmap.kernel_maps sysctl by default.
  
  This sysctl node can generate very verbose output, so don't trigger it
  for sysctl -a or sysctl vm.pmap.
  
  Reviewed by:	markj, kib
  Differential Revision:	https://reviews.freebsd.org/D27504

Modified:
  head/sys/amd64/amd64/pmap.c
  head/sys/arm64/arm64/pmap.c
  head/sys/i386/i386/pmap_base.c
  head/sys/riscv/riscv/pmap.c

Modified: head/sys/amd64/amd64/pmap.c
==============================================================================
--- head/sys/amd64/amd64/pmap.c	Fri Dec 18 20:10:30 2020	(r368767)
+++ head/sys/amd64/amd64/pmap.c	Fri Dec 18 20:41:23 2020	(r368768)
@@ -11271,7 +11271,7 @@ restart:
 	return (error);
 }
 SYSCTL_OID(_vm_pmap, OID_AUTO, kernel_maps,
-    CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_MPSAFE,
+    CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_MPSAFE | CTLFLAG_SKIP,
     NULL, 0, sysctl_kmaps, "A",
     "Dump kernel address layout");
 

Modified: head/sys/arm64/arm64/pmap.c
==============================================================================
--- head/sys/arm64/arm64/pmap.c	Fri Dec 18 20:10:30 2020	(r368767)
+++ head/sys/arm64/arm64/pmap.c	Fri Dec 18 20:41:23 2020	(r368768)
@@ -7168,6 +7168,6 @@ sysctl_kmaps(SYSCTL_HANDLER_ARGS)
 	return (error);
 }
 SYSCTL_OID(_vm_pmap, OID_AUTO, kernel_maps,
-    CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_MPSAFE,
+    CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_MPSAFE | CTLFLAG_SKIP,
     NULL, 0, sysctl_kmaps, "A",
     "Dump kernel address layout");

Modified: head/sys/i386/i386/pmap_base.c
==============================================================================
--- head/sys/i386/i386/pmap_base.c	Fri Dec 18 20:10:30 2020	(r368767)
+++ head/sys/i386/i386/pmap_base.c	Fri Dec 18 20:41:23 2020	(r368768)
@@ -265,7 +265,7 @@ sysctl_kmaps(SYSCTL_HANDLER_ARGS)
 	return (pmap_methods_ptr->pm_sysctl_kmaps(oidp, arg1, arg2, req));
 }
 SYSCTL_OID(_vm_pmap, OID_AUTO, kernel_maps,
-    CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_MPSAFE,
+    CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_MPSAFE | CTLFLAG_SKIP,
     NULL, 0, sysctl_kmaps, "A",
     "Dump kernel address layout");
 

Modified: head/sys/riscv/riscv/pmap.c
==============================================================================
--- head/sys/riscv/riscv/pmap.c	Fri Dec 18 20:10:30 2020	(r368767)
+++ head/sys/riscv/riscv/pmap.c	Fri Dec 18 20:41:23 2020	(r368768)
@@ -4638,6 +4638,6 @@ sysctl_kmaps(SYSCTL_HANDLER_ARGS)
 	return (error);
 }
 SYSCTL_OID(_vm_pmap, OID_AUTO, kernel_maps,
-    CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_MPSAFE,
+    CTLTYPE_STRING | CTLFLAG_RD | CTLFLAG_MPSAFE | CTLFLAG_SKIP,
     NULL, 0, sysctl_kmaps, "A",
     "Dump kernel address layout");



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012182041.0BIKfOXm013905>