Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F156908195
D29885.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
777 B
Referenced Files
None
Subscribers
None
D29885.diff
View Options
diff --git a/lib/libpmc/pmc_allocate.3 b/lib/libpmc/pmc_allocate.3
--- a/lib/libpmc/pmc_allocate.3
+++ b/lib/libpmc/pmc_allocate.3
@@ -23,7 +23,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd September 22, 2008
+.Dd April 21, 2021
.Dt PMC_ALLOCATE 3
.Os
.Sh NAME
@@ -41,6 +41,7 @@
.Fa "uint32_t flags"
.Fa "int cpu"
.Fa "pmc_id_t *pmcid"
+.Fa "uint64_t count"
.Fc
.Ft int
.Fn pmc_release "pmc_id_t pmc"
@@ -111,6 +112,20 @@
.Dv PMC_CPU_ANY
for this argument.
.Pp
+The
+.Fa count
+argument behaves identically to the
+.Xr pmc_set 3
+function's
+.Fa value
+argument.
+For counting PMCs,
+.Fa count
+specifies the initial value of the allocated PMC.
+For sampling PMCs,
+.Fa count
+specifies the reload count.
+.Pp
Function
.Fn pmc_release
releases the PMC denoted by argument
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, May 18, 6:47 AM (2 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33236628
Default Alt Text
D29885.diff (777 B)
Attached To
Mode
D29885: pmc_allocate(3): document the count argument
Attached
Detach File
Event Timeline
Log In to Comment