]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r226514,r226526,r226986:
authorfabient <fabient@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 3 Jan 2012 16:35:00 +0000 (16:35 +0000)
committerfabient <fabient@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 3 Jan 2012 16:35:00 +0000 (16:35 +0000)
commitf631a14b601d8c5762b8aff13ca908ace32dc4a6
tree0e33191851ae6bdb219a17501952c671332bace8
parenta3811a86e43438b13a8bf2225186378b7d08fc16
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/9@229392 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