summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.maps/linear_bad.stp
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/systemtap.maps/linear_bad.stp')
-rw-r--r--testsuite/systemtap.maps/linear_bad.stp21
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/systemtap.maps/linear_bad.stp b/testsuite/systemtap.maps/linear_bad.stp
new file mode 100644
index 00000000..5ebde182
--- /dev/null
+++ b/testsuite/systemtap.maps/linear_bad.stp
@@ -0,0 +1,21 @@
+# test of too many buckets (interval too small)
+
+global agg
+
+probe begin
+{
+ # Add items to the aggregate
+ for (key=0; key < 100; key++) {
+ agg <<< key
+ }
+
+ 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, 1500, 2))
+
+ exit()
+}