From 674f70a0371c1f97a83c66268d03332ebbf9e62f Mon Sep 17 00:00:00 2001 From: hunt Date: Wed, 12 Sep 2007 18:21:55 +0000 Subject: 2007-09-12 Martin Hunt * 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. --- testsuite/systemtap.maps/log_edge.stp | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 testsuite/systemtap.maps/log_edge.stp (limited to 'testsuite/systemtap.maps/log_edge.stp') 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() +} -- cgit