diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2007-11-15 14:35:40 -0500 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2007-11-15 14:35:40 -0500 |
commit | 055e8b89db8f76f0ccc05d08acfe979ba50024d6 (patch) | |
tree | 5c51849d470c1ff74162fbeb6be56f190d524daf /testsuite/systemtap.samples/iotask.stp | |
parent | 3cf29fed2ae7b36527c95c93754a4c0b0e51e749 (diff) | |
parent | f781f849ceedba83580eead82c3baf949a9738db (diff) | |
download | systemtap-steved-055e8b89db8f76f0ccc05d08acfe979ba50024d6.tar.gz systemtap-steved-055e8b89db8f76f0ccc05d08acfe979ba50024d6.tar.xz systemtap-steved-055e8b89db8f76f0ccc05d08acfe979ba50024d6.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'testsuite/systemtap.samples/iotask.stp')
-rw-r--r-- | testsuite/systemtap.samples/iotask.stp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/testsuite/systemtap.samples/iotask.stp b/testsuite/systemtap.samples/iotask.stp index 13d273a3..ee0ae4b4 100644 --- a/testsuite/systemtap.samples/iotask.stp +++ b/testsuite/systemtap.samples/iotask.stp @@ -23,23 +23,21 @@ probe kernel.function("sys_write") { write_bytes[execname()] += $count; } -probe begin { log( "starting probe" ); } +probe begin { println( "starting probe" ); } probe end { foreach( name in names){ - log ("process: " . name); + printf ("process: %s\n", name); if (opens[name]) - log( "opens n=" . sprint(opens[name])); - if ( reads[name]){ + printf ("opens=%d\n",opens[name]) + if (reads[name]){ count = reads[name]; total=read_bytes[name]; - log("reads n, sum, avg=". sprint(count) - . "," . sprint(total) . "," . sprint(total/count)); + printf("reads=%d, sum=%d, avg=%d\n", count, total, total/count); } if (writes[name]){ count = writes[name]; total=write_bytes[name]; - log("writes n, sum, avg=". sprint(count) - . "," . sprint(total) . "," . sprint(total/count)); + printf("writes=%d, sum=%d, avg=%d\n", count, total, total/count); } - log(""); + println(""); } } |