aboutsummaryrefslogtreecommitdiff
path: root/share/man/man4/hwpmc.4
diff options
context:
space:
mode:
authorJessica Clarke <jrtc27@FreeBSD.org>2023-05-30 23:15:24 +0000
committerJessica Clarke <jrtc27@FreeBSD.org>2023-05-30 23:15:24 +0000
commit8e63e787abbd69d29e55e2e0b2aa0aa624339f3b (patch)
tree99e8c3613fdfbc3fbb93510a361972026320ac09 /share/man/man4/hwpmc.4
parent2071e54c226a120a62baa710bef225c4f6ad5ee3 (diff)
downloadsrc-8e63e787abbd69d29e55e2e0b2aa0aa624339f3b.tar.gz
src-8e63e787abbd69d29e55e2e0b2aa0aa624339f3b.zip
pmc: Initialise and check the pm_flags field for CONFIGURELOG
Whilst the former is not breaking, the latter is, and so this will be followed by a bump to the pmc major version. This will allow the flags to actually be usable in future, as otherwise we cannot distinguish uninitialised stack junk from a deliberately-initialised value. Reviewed by: jhb, mhorne Differential Revision: https://reviews.freebsd.org/D40049
Diffstat (limited to 'share/man/man4/hwpmc.4')
-rw-r--r--share/man/man4/hwpmc.46
1 files changed, 6 insertions, 0 deletions
diff --git a/share/man/man4/hwpmc.4 b/share/man/man4/hwpmc.4
index 806c2ee701c5..4500e168b021 100644
--- a/share/man/man4/hwpmc.4
+++ b/share/man/man4/hwpmc.4
@@ -598,6 +598,12 @@ An invalid CPU number was passed in for a
.Dv PMC_OP_GETPMCINFO
operation.
.It Bq Er EINVAL
+The
+.Ar pm_flags
+argument to a
+.Dv PMC_OP_CONFIGURELOG
+request contained unknown flags.
+.It Bq Er EINVAL
A
.Dv PMC_OP_CONFIGURELOG
request to de-configure a log file was issued without a log file