summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.maps/linear_large_neg.stp
diff options
context:
space:
mode:
authorhunt <hunt>2007-09-21 19:11:41 +0000
committerhunt <hunt>2007-09-21 19:11:41 +0000
commitc04d7a74fef8a5e9751db280ebfdf8245694d0e0 (patch)
tree9340706471ee077a3fe82db0f33a43192f9d4dfa /testsuite/systemtap.maps/linear_large_neg.stp
parent387e9f1c0f722108a2569cb0bd5e45b236b800a7 (diff)
downloadsystemtap-steved-c04d7a74fef8a5e9751db280ebfdf8245694d0e0.tar.gz
systemtap-steved-c04d7a74fef8a5e9751db280ebfdf8245694d0e0.tar.xz
systemtap-steved-c04d7a74fef8a5e9751db280ebfdf8245694d0e0.zip
2007-09-21 Martin Hunt <hunt@redhat.com>
* systemtap.maps/linear*: Updated linear histogram tests.
Diffstat (limited to 'testsuite/systemtap.maps/linear_large_neg.stp')
-rw-r--r--testsuite/systemtap.maps/linear_large_neg.stp33
1 files changed, 33 insertions, 0 deletions
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()
+}