diff options
author | fabient <fabient@FreeBSD.org> | 2011-10-18 15:25:43 +0000 |
---|---|---|
committer | fabient <fabient@FreeBSD.org> | 2011-10-18 15:25:43 +0000 |
commit | c0da433b0a908c85fe0547ba8054795948e39d30 (patch) | |
tree | 3965b86bd8e0e5d008fd4219e7d38fa2351bfcac /lib/libpmc/libpmc.c | |
parent | 9e1982ba8eaabe131f148406f3f2819d8e0e1563 (diff) | |
download | FreeBSD-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 'lib/libpmc/libpmc.c')
-rw-r--r-- | lib/libpmc/libpmc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libpmc/libpmc.c b/lib/libpmc/libpmc.c index 1d86a82..f0d5b0c 100644 --- a/lib/libpmc/libpmc.c +++ b/lib/libpmc/libpmc.c @@ -2596,6 +2596,12 @@ pmc_flush_logfile(void) } int +pmc_close_logfile(void) +{ + return (PMC_CALL(CLOSELOG,0)); +} + +int pmc_get_driver_stats(struct pmc_driverstats *ds) { struct pmc_op_getdriverstats gms; |