summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.maps/linear_large.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.maps/linear_large.stp')
-rw-r--r--testsuite/systemtap.maps/linear_large.stp35
1 files changed, 35 insertions, 0 deletions
diff --git a/testsuite/systemtap.maps/linear_large.stp b/testsuite/systemtap.maps/linear_large.stp
new file mode 100644
index 00000000..668a00d5
--- /dev/null
+++ b/testsuite/systemtap.maps/linear_large.stp
@@ -0,0 +1,35 @@
+global agg
+
+probe begin
+{
+ # Add items to the aggregate
+
+ agg <<< 10000000
+ agg <<< 10000000
+ agg <<< 10000000
+
+ 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, 0, 1000000000, 100000000))
+
+ exit()
+}