diff options
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() +} |