]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit - usr.sbin/pmcstat/pmcstat.c
MFC r226514,r226526,r226986:
authorfabient <fabient@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 16 Nov 2011 15:25:12 +0000 (15:25 +0000)
committerfabient <fabient@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 16 Nov 2011 15:25:12 +0000 (15:25 +0000)
commitbd73423c52bf7a83f5f5c93a467770bab573f243
tree566ec68035c775d912597c20eedaf5f67a47f661
parente3450f8330f5f6b0fd3468f032320eaea14560d3
MFC r226514,r226526,r226986:
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.

git-svn-id: svn://svn.freebsd.org/base/stable/8@227555 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
lib/libpmc/libpmc.c
lib/libpmc/pmc.3
lib/libpmc/pmc.h
lib/libpmc/pmc_configure_logfile.3
sys/dev/hwpmc/hwpmc_logging.c
sys/dev/hwpmc/hwpmc_mod.c
sys/sys/pmc.h
sys/sys/pmclog.h
usr.sbin/pmcstat/pmcstat.c
usr.sbin/pmcstat/pmcstat_log.c