summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2016-10-25 00:11:06 +0000
committerdlg <dlg@openbsd.org>2016-10-25 00:11:06 +0000
commit309a8aed564e6f525cf7b641de0444b9b5ad024d (patch)
tree0290185212e7002a9ee6d7430dd2ffd626d262ba
parentbluhm@ suggests that it is enough to say that the allocations will (diff)
downloadwireguard-openbsd-309a8aed564e6f525cf7b641de0444b9b5ad024d.tar.xz
wireguard-openbsd-309a8aed564e6f525cf7b641de0444b9b5ad024d.zip
bluhm@ suggested pointing out that cpumem_malloc_ncpus and
counters_alloc_ncpus preserve the contents of memory used by the boot cpu.
-rw-r--r--share/man/man9/counters_alloc.95
-rw-r--r--share/man/man9/cpumem_get.95
2 files changed, 6 insertions, 4 deletions
diff --git a/share/man/man9/counters_alloc.9 b/share/man/man9/counters_alloc.9
index 26ca0f4f42a..d97139a3067 100644
--- a/share/man/man9/counters_alloc.9
+++ b/share/man/man9/counters_alloc.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: counters_alloc.9,v 1.4 2016/10/25 00:07:29 dlg Exp $
+.\" $OpenBSD: counters_alloc.9,v 1.5 2016/10/25 00:11:06 dlg Exp $
.\"
.\" Copyright (c) 2016 David Gwynne <dlg@openbsd.org>
.\"
@@ -133,7 +133,8 @@ The
argument specifies the type of memory that the counters will be
allocated as via
.Xr malloc 9 .
-The memory will be zeroed on allocation.
+The counters on the boot CPU will be preserved, while the counters
+for the additional CPU's will be zeroed on allocation.
.Pp
Counters that have been allocated with
.Fn COUNTERS_BOOT_MEMORY
diff --git a/share/man/man9/cpumem_get.9 b/share/man/man9/cpumem_get.9
index 687b213207a..b7e8223011d 100644
--- a/share/man/man9/cpumem_get.9
+++ b/share/man/man9/cpumem_get.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: cpumem_get.9,v 1.7 2016/10/25 00:07:29 dlg Exp $
+.\" $OpenBSD: cpumem_get.9,v 1.8 2016/10/25 00:11:06 dlg Exp $
.\"
.\" Copyright (c) 2016 David Gwynne <dlg@openbsd.org>
.\"
@@ -141,7 +141,8 @@ The
argument specifies the type of memory that the counters will be
allocated as via
.Xr malloc 9 .
-The memory will be zeroed on allocation.
+The contents of the memory on the boot CPU will be preserved, while
+the allocations for the additional CPU's will be zeroed on allocation.
.Pp
Per CPU memory that has been allocated with
.Fn CPUMEM_BOOT_MEMORY