summaryrefslogtreecommitdiffstats
path: root/examples/small_demos
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@elastic.org>2007-10-05 22:43:41 -0400
committerFrank Ch. Eigler <fche@elastic.org>2007-10-05 22:43:41 -0400
commit9d33454315110680fda3a926465c3002a0521431 (patch)
tree1bf932760ff25506f7fb8c9c2fc118bb249f5113 /examples/small_demos
parentb3159730ec256436bc47071185c6a3d14324f8d1 (diff)
parenta9e8f7e0533811be2cd7c9a88d9058da8caa1d11 (diff)
downloadsystemtap-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-xexamples/small_demos/rwtiming.stp5
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