summaryrefslogtreecommitdiffstats
path: root/sys/sys/pmc.h
diff options
context:
space:
mode:
authorfabient <fabient@FreeBSD.org>2011-10-18 15:25:43 +0000
committerfabient <fabient@FreeBSD.org>2011-10-18 15:25:43 +0000
commitc0da433b0a908c85fe0547ba8054795948e39d30 (patch)
tree3965b86bd8e0e5d008fd4219e7d38fa2351bfcac /sys/sys/pmc.h
parent9e1982ba8eaabe131f148406f3f2819d8e0e1563 (diff)
downloadFreeBSD-src-c0da433b0a908c85fe0547ba8054795948e39d30.zip
FreeBSD-src-c0da433b0a908c85fe0547ba8054795948e39d30.tar.gz
Add a flush of the current PMC log buffer before displaying the next top.
As the underlying block is 4KB if the PMC throughput is low the measurement will be reported on the next tick. pmcstat(8) use the modified flush API to reclaim current buffer before displaying next top. MFC after: 1 month
Diffstat (limited to 'sys/sys/pmc.h')
-rw-r--r--sys/sys/pmc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sys/pmc.h b/sys/sys/pmc.h
index bcc2898..6819ece 100644
--- a/sys/sys/pmc.h
+++ b/sys/sys/pmc.h
@@ -302,7 +302,8 @@ enum pmc_event {
__PMC_OP(PMCSETCOUNT, "Set initial count/sampling rate") \
__PMC_OP(PMCSTART, "Start a PMC") \
__PMC_OP(PMCSTOP, "Stop a PMC") \
- __PMC_OP(WRITELOG, "Write a cookie to the log file")
+ __PMC_OP(WRITELOG, "Write a cookie to the log file") \
+ __PMC_OP(CLOSELOG, "Close log file")
enum pmc_ops {
OpenPOWER on IntegriCloud