From dda823f922ac7294cd24eeb4b1bb7436af24c8c7 Mon Sep 17 00:00:00 2001 From: hunt Date: Mon, 12 Nov 2007 22:04:35 +0000 Subject: 2007-11-12 Martin Hunt * 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. --- testsuite/systemtap.samples/iotask.stp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'testsuite/systemtap.samples/iotask.stp') 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(""); } } -- cgit