diff options
Diffstat (limited to 'testsuite/systemtap.maps/linear_over.stp')
-rw-r--r-- | testsuite/systemtap.maps/linear_over.stp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/systemtap.maps/linear_over.stp b/testsuite/systemtap.maps/linear_over.stp new file mode 100644 index 00000000..989d9ac2 --- /dev/null +++ b/testsuite/systemtap.maps/linear_over.stp @@ -0,0 +1,22 @@ +# test of histogram where all the values are +# over the histogram + +global agg + +probe begin +{ + # Add items to the aggregate + for (key=1000; key < 10000; 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, 100, 10)) + + exit() +} |