diff options
author | Fabien Thomas <fabient@FreeBSD.org> | 2011-10-18 15:25:43 +0000 |
---|---|---|
committer | Fabien Thomas <fabient@FreeBSD.org> | 2011-10-18 15:25:43 +0000 |
commit | dceed24a7c730b6c50166d699e2110379c196a79 (patch) | |
tree | 3965b86bd8e0e5d008fd4219e7d38fa2351bfcac /sys/sys/pmclog.h | |
parent | a7e054044c3fa072d72ecf23db03e37915403137 (diff) | |
download | src-dceed24a7c730b6c50166d699e2110379c196a79.tar.gz src-dceed24a7c730b6c50166d699e2110379c196a79.zip |
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
Notes
Notes:
svn path=/head/; revision=226514
Diffstat (limited to 'sys/sys/pmclog.h')
-rw-r--r-- | sys/sys/pmclog.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/sys/pmclog.h b/sys/sys/pmclog.h index 44c5c6c4c4b4..f2b6480a52c2 100644 --- a/sys/sys/pmclog.h +++ b/sys/sys/pmclog.h @@ -243,6 +243,7 @@ int pmclog_configure_log(struct pmc_mdep *_md, struct pmc_owner *_po, int _logfd); int pmclog_deconfigure_log(struct pmc_owner *_po); int pmclog_flush(struct pmc_owner *_po); +int pmclog_close(struct pmc_owner *_po); void pmclog_initialize(void); void pmclog_process_callchain(struct pmc *_pm, struct pmc_sample *_ps); void pmclog_process_closelog(struct pmc_owner *po); |