]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r210794:
authorfabient <fabient@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 9 Aug 2010 14:29:23 +0000 (14:29 +0000)
committerfabient <fabient@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 9 Aug 2010 14:29:23 +0000 (14:29 +0000)
commit02d6249ef54275d75fb9bb2abc80c49aab4c0bcf
tree5d77890bc74ce2bd09f91a11c63c5fbc4b5a0774
parent11fce012e16ffef4c5198bbcca1f1ab377e9f29b
MFC r210794:
Allow file as a top source, it works with socket now.
This will allow top monitoring using socket/ssh tunnelling
of system without local symbols.

client:
pmcstat -R <ip>:<port> -T -r <symbolspath>
monitored device:
pmcstat -Sinstructions -O <ip>:<port>

- Move the file read in the event loop
- Initialize and clean log in all cases
- Preserve global stats value during top refresh
- Fix the rtld/line resolver that ignore '-r' prefix
- Support socket for '-R' (server mode)
- Display the statistics when exiting top mode

git-svn-id: svn://svn.freebsd.org/base/stable/8@211098 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.sbin/pmcstat/pmcstat.c
usr.sbin/pmcstat/pmcstat_log.c