Page MenuHomeFreeBSD

D29885.1794733367.diff
No OneTemporary

Authored By
Unknown
Size
684 B
Referenced Files
None
Subscribers
None

D29885.1794733367.diff

Index: lib/libpmc/pmc_allocate.3
===================================================================
--- lib/libpmc/pmc_allocate.3
+++ lib/libpmc/pmc_allocate.3
@@ -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

Mime Type
text/plain
Expires
Sun, Nov 15, 9:02 AM (13 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41740925
Default Alt Text
D29885.1794733367.diff (684 B)

Event Timeline