svn commit: r368768 - in head/sys: amd64/amd64 arm64/arm64 i386/i386 riscv/riscv
John Baldwin
jhb at FreeBSD.org
Fri Dec 18 20:41:25 UTC 2020
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");
More information about the svn-src-head
mailing list