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 /usr.sbin/pmcstat/pmcstat_log.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 'usr.sbin/pmcstat/pmcstat_log.c')
-rw-r--r-- | usr.sbin/pmcstat/pmcstat_log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/pmcstat/pmcstat_log.c b/usr.sbin/pmcstat/pmcstat_log.c index b7dc956..6d0403f 100644 --- a/usr.sbin/pmcstat/pmcstat_log.c +++ b/usr.sbin/pmcstat/pmcstat_log.c @@ -1702,7 +1702,7 @@ pmcstat_close_log(void) * so keep the status to EXITING. */ if (args.pa_logfd != -1) { - if (pmc_flush_logfile() < 0) + if (pmc_close_logfile() < 0) err(EX_OSERR, "ERROR: logging failed"); } |