summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.samples/iotask.stp
diff options
context:
space:
mode:
authorhunt <hunt>2007-11-12 22:04:35 +0000
committerhunt <hunt>2007-11-12 22:04:35 +0000
commitdda823f922ac7294cd24eeb4b1bb7436af24c8c7 (patch)
treebf8a4507dda929f48b1ad31e216b5694e1e99384 /testsuite/systemtap.samples/iotask.stp
parenteddde980ee23baef42edb992da5cb977ba6b4c0c (diff)
downloadsystemtap-steved-dda823f922ac7294cd24eeb4b1bb7436af24c8c7.tar.gz
systemtap-steved-dda823f922ac7294cd24eeb4b1bb7436af24c8c7.tar.xz
systemtap-steved-dda823f922ac7294cd24eeb4b1bb7436af24c8c7.zip
2007-11-12 Martin Hunt <hunt@redhat.com>
* systemtap.base/*.stp: Replace log() calls with println() (or printf() if formatting would help.) * systemtap.maps/*.stp: Ditto. * systemtap.samples/*.stp: Ditto. * systemtap.stress/*.stp: Ditto.
Diffstat (limited to 'testsuite/systemtap.samples/iotask.stp')
-rw-r--r--testsuite/systemtap.samples/iotask.stp16
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("");
}
}