diff options
author | fche <fche> | 2007-10-06 02:42:29 +0000 |
---|---|---|
committer | fche <fche> | 2007-10-06 02:42:29 +0000 |
commit | a9e8f7e0533811be2cd7c9a88d9058da8caa1d11 (patch) | |
tree | 1bf932760ff25506f7fb8c9c2fc118bb249f5113 /examples/small_demos | |
parent | 9ac6c5a8273dd7133a79517c9cd47b1a66b51c24 (diff) | |
download | systemtap-steved-a9e8f7e0533811be2cd7c9a88d9058da8caa1d11.tar.gz systemtap-steved-a9e8f7e0533811be2cd7c9a88d9058da8caa1d11.tar.xz systemtap-steved-a9e8f7e0533811be2cd7c9a88d9058da8caa1d11.zip |
PR1119: unused variable elision warnings
2007-10-05 Frank Ch. Eigler <fche@elastic.org>
PR 1119
* elaborate.cxx (semantic_pass_opt[12]): Warn on elided
variables/functions in user script.
* session.h (suppress_warnings): New field. Change
"timing" to plain old bool.
* main.cxx (main): Configure warnings on by default.
* stap.1.in: Document this.
PR 1119.
* systemtap.base/warnings.*: New test.
* futexes.stp, sig_by_proc.stp, small_demos/rwtiming.stp: Fix elision
warnings.
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 |