From c04d7a74fef8a5e9751db280ebfdf8245694d0e0 Mon Sep 17 00:00:00 2001 From: hunt Date: Fri, 21 Sep 2007 19:11:41 +0000 Subject: 2007-09-21 Martin Hunt * systemtap.maps/linear*: Updated linear histogram tests. --- testsuite/systemtap.maps/linear_large_neg.stp | 33 +++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 testsuite/systemtap.maps/linear_large_neg.stp (limited to 'testsuite/systemtap.maps/linear_large_neg.stp') diff --git a/testsuite/systemtap.maps/linear_large_neg.stp b/testsuite/systemtap.maps/linear_large_neg.stp new file mode 100644 index 00000000..3a3e1685 --- /dev/null +++ b/testsuite/systemtap.maps/linear_large_neg.stp @@ -0,0 +1,33 @@ +global agg + +probe begin +{ + # Add items to the aggregate + + agg <<< 0 + + agg <<< -100000000 + agg <<< -100000000 + + agg <<< -500000000 + agg <<< -500000000 + agg <<< -500000000 + agg <<< -500000000 + agg <<< -500000000 + + agg <<< -1000000000 + agg <<< -1000000000 + agg <<< -1000000000 + agg <<< -1000000000 + + agg <<< -10000000000 + + printf("count=%d\n", @count(agg)) + printf("sum=%d\n", @sum(agg)) + printf("min=%d\n", @min(agg)) + printf("max=%d\n", @max(agg)) + printf("avg=%d\n", @avg(agg)) + print(@hist_linear(agg, -1000000000, 0, 100000000)) + + exit() +} -- cgit