diff options
author | Frank Ch. Eigler <fche@elastic.org> | 2007-10-05 22:43:41 -0400 |
---|---|---|
committer | Frank Ch. Eigler <fche@elastic.org> | 2007-10-05 22:43:41 -0400 |
commit | 9d33454315110680fda3a926465c3002a0521431 (patch) | |
tree | 1bf932760ff25506f7fb8c9c2fc118bb249f5113 /examples/small_demos | |
parent | b3159730ec256436bc47071185c6a3d14324f8d1 (diff) | |
parent | a9e8f7e0533811be2cd7c9a88d9058da8caa1d11 (diff) | |
download | systemtap-steved-9d33454315110680fda3a926465c3002a0521431.tar.gz systemtap-steved-9d33454315110680fda3a926465c3002a0521431.tar.xz systemtap-steved-9d33454315110680fda3a926465c3002a0521431.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'examples/small_demos')
-rwxr-xr-x | examples/small_demos/rwtiming.stp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/examples/small_demos/rwtiming.stp b/examples/small_demos/rwtiming.stp index c5a9aed3..d570c581 100755 --- a/examples/small_demos/rwtiming.stp +++ b/examples/small_demos/rwtiming.stp @@ -50,7 +50,10 @@ probe kernel.function("sys_write").return { probe end { foreach(name+ in names) { # sort by names printf ("process: %s\n", name) - if (opens[name]) printf ("opens n=%d\n", opens[name]) + if (opens[name]) { + printf ("opens n=%d\n", opens[name]) + print (@hist_log(time_opens[name])) + } if (@count(reads[name])) { printf ("reads n=%d, sum=%d, avg=%d\n", @count(reads[name]), # extracting stat results |