aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2020-12-18 20:41:23 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2020-12-18 20:41:23 +0000
commit1dce7d9e7eefead038610df6a8d6c86a0fdbebb8 (patch)
tree39b0254456b85190aed16113d05e72524c1e7721
parent25de8fb6ca9f9ff3fa486ca5c1ff5479de5b19e3 (diff)
downloadsrc-1dce7d9e7eefead038610df6a8d6c86a0fdbebb8.tar.gz
src-1dce7d9e7eefead038610df6a8d6c86a0fdbebb8.zip
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
Notes
Notes: svn path=/head/; revision=368768
-rw-r--r--sys/amd64/amd64/pmap.c2
-rw-r--r--sys/arm64/arm64/pmap.c2
-rw-r--r--sys/i386/i386/pmap_base.c2
-rw-r--r--sys/riscv/riscv/pmap.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
index f0512fe7e871..245a94f1d5b9 100644
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -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");
diff --git a/sys/arm64/arm64/pmap.c b/sys/arm64/arm64/pmap.c
index 98734cd12cc0..86ab5cb43ae9 100644
--- a/sys/arm64/arm64/pmap.c
+++ b/sys/arm64/arm64/pmap.c
@@ -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");
diff --git a/sys/i386/i386/pmap_base.c b/sys/i386/i386/pmap_base.c
index becac3606922..6f0d105f0f56 100644
--- a/sys/i386/i386/pmap_base.c
+++ b/sys/i386/i386/pmap_base.c
@@ -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");
diff --git a/sys/riscv/riscv/pmap.c b/sys/riscv/riscv/pmap.c
index 6cad0f68740c..4ad46731f158 100644
--- a/sys/riscv/riscv/pmap.c
+++ b/sys/riscv/riscv/pmap.c
@@ -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");