implementation of OLS 2005 example in current language
William Cohen
wcohen@redhat.com
Tue Sep 6 23:10:00 GMT 2005
I implemented the OLS 2005 example that tracked opens, reads, and writes
in the current systemtap language. I did the averages by hand. This
compiled and ran with a current snapshot of systemtap.
$ stap fileops.stp
4 opens by process "udevd"
75 opens by process "init"
31 opens by process "hald"
16 opens by process "automount"
reads by process "stap": 2 Total bytes= 16384. Average:8192.
reads by process "init": 155 Total bytes= 140360. Average:905.
reads by process "sshd": 492 Total bytes= 8060928. Average:16384.
reads by process "bash": 703 Total bytes= 24576. Average:34.
writes by process "init": 141 Total bytes= 11972. Average:84.
writes by process "sshd": 535 Total bytes= 87505. Average:163.
writes by process "bash": 283 Total bytes= 60052. Average:212.
writes by process "stap": 1 Total bytes= 4. Average:4.
-Will
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fileops.stp
URL: <http://sourceware.org/pipermail/systemtap/attachments/20050906/eb0e1a37/attachment.ksh>
More information about the Systemtap
mailing list