summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2022-02-20 23:11:02 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2022-02-20 23:11:02 +0000
commit396789a1c53aa0bb941c7963e45add3fd48794cb (patch)
tree4f3b43f7a13812ee542c1e170cb6d2c2b2e585b8
parent98cd77bcdc3435635722141d65ca8ad121986126 (diff)
i missed a word.
some other tweaks for readability or brevity while here
-rw-r--r--share/man/man9/counters_alloc.910
1 files changed, 5 insertions, 5 deletions
diff --git a/share/man/man9/counters_alloc.9 b/share/man/man9/counters_alloc.9
index adb8cfce216..1de8bffc639 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.11 2020/08/27 09:29:16 fcambus Exp $
+.\" $OpenBSD: counters_alloc.9,v 1.12 2022/02/20 23:11:01 dlg Exp $
.\"
.\" Copyright (c) 2016 David Gwynne <dlg@openbsd.org>
.\"
@@ -14,7 +14,7 @@
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: August 27 2020 $
+.Dd $Mdocdate: February 20 2022 $
.Dt COUNTERS_ALLOC 9
.Os
.Sh NAME
@@ -78,13 +78,14 @@ Updates to counters should be limited to addition or subtraction
of uint64_t values.
.Pp
An alternate implementation of the API is provided on uni-processor
+systems
(i.e. when the kernel is not built with
.Dv MULTIPROCESSOR
defined)
-systems that provides no overhead compared to direct access to a
+that provides no overhead compared to direct access to a
data structure.
This allows the API to be used without affecting the performance
-uni-processor systems.
+of uni-processor systems.
.Pp
.Fn counters_alloc
allocates memory for a series of uint64_t values on each CPU.
@@ -143,7 +144,6 @@ and
.Fn counters_alloc_ncpus
cannot be deallocated with
.Fa counters_free .
-Any attempt to do so will lead to undefined behaviour.
.Pp
.Fn counters_enter
provides access to the current CPU's set of counters referenced by