diff options
author | hunt <hunt> | 2007-09-12 18:21:55 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-09-12 18:21:55 +0000 |
commit | 674f70a0371c1f97a83c66268d03332ebbf9e62f (patch) | |
tree | d910409c003bc72463253cc7ef0c07bb522721fb /testsuite/systemtap.maps/log_edge.stp | |
parent | cf9be511f05d0b310b2c4ce4c050d3707be9e65a (diff) | |
download | systemtap-steved-674f70a0371c1f97a83c66268d03332ebbf9e62f.tar.gz systemtap-steved-674f70a0371c1f97a83c66268d03332ebbf9e62f.tar.xz systemtap-steved-674f70a0371c1f97a83c66268d03332ebbf9e62f.zip |
2007-09-12 Martin Hunt <hunt@redhat.com>
* systemtap.maps/foreach_limit.stp: Clean up the aggregates
section.
* systemtap.maps/foreach_limit2.stp: Remove newline that was
confusing the output match.
* systemtap.maps/linear_bad.exp: Fix expected output.
* systemtap.maps/linear_neg.exp: Ditto.
* systemtap.maps/log.*: New files.
* systemtap.maps/log_edge.*: New files.
* lib/stap_run2.exp (stap_run2): Rewrite. Previous version
was too complex and buggy.
Diffstat (limited to 'testsuite/systemtap.maps/log_edge.stp')
-rw-r--r-- | testsuite/systemtap.maps/log_edge.stp | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/testsuite/systemtap.maps/log_edge.stp b/testsuite/systemtap.maps/log_edge.stp new file mode 100644 index 00000000..9eb2ddb6 --- /dev/null +++ b/testsuite/systemtap.maps/log_edge.stp @@ -0,0 +1,40 @@ +global foo + +probe begin +{ + foo <<< -1 + foo <<< 1 + print(@hist_log(foo)) + foreach (bucket in @hist_log(foo)) + if (@hist_log(foo)[bucket]) + printf("bucket %d: %d\n", bucket, @hist_log(foo)[bucket]) + print("\n\n\n") + delete foo + + + foo <<< 0 + print(@hist_log(foo)) + foreach (bucket in @hist_log(foo)) + if (@hist_log(foo)[bucket]) + printf("bucket %d: %d\n", bucket, @hist_log(foo)[bucket]) + print("\n\n\n") + delete foo + + foo <<< 0x7fffffffffffffff + print(@hist_log(foo)) + foreach (bucket in @hist_log(foo)) + if (@hist_log(foo)[bucket]) + printf("bucket %d: %d\n", bucket, @hist_log(foo)[bucket]) + print("\n\n\n") + delete foo + + foo <<< 1 + foo <<< 2 + foo <<< 3 + foo <<< 4 + print(@hist_log(foo)) + foreach (bucket in @hist_log(foo)) + if (@hist_log(foo)[bucket]) + printf("bucket %d: %d\n", bucket, @hist_log(foo)[bucket]) + exit() +} |