diff options
author | hunt <hunt> | 2007-07-06 19:03:12 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-07-06 19:03:12 +0000 |
commit | 8ecca5bae4ccdd9af021ba6af3fa5c8bd26c34be (patch) | |
tree | 559966e2b73fb55cdc00b7653c1915bbd0db9d8a /testsuite/systemtap.maps/linear_neg.stp | |
parent | 7d291bee3622b18c16d53a359a230306b67203f9 (diff) | |
download | systemtap-steved-8ecca5bae4ccdd9af021ba6af3fa5c8bd26c34be.tar.gz systemtap-steved-8ecca5bae4ccdd9af021ba6af3fa5c8bd26c34be.tar.xz systemtap-steved-8ecca5bae4ccdd9af021ba6af3fa5c8bd26c34be.zip |
2007-07-06 Martin Hunt <hunt@redhat.com>
* systemtap.maps/linear*: New tests of linear histograms.
Diffstat (limited to 'testsuite/systemtap.maps/linear_neg.stp')
-rw-r--r-- | testsuite/systemtap.maps/linear_neg.stp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/testsuite/systemtap.maps/linear_neg.stp b/testsuite/systemtap.maps/linear_neg.stp new file mode 100644 index 00000000..b8825a6b --- /dev/null +++ b/testsuite/systemtap.maps/linear_neg.stp @@ -0,0 +1,21 @@ +# test for a negative interval + +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, -1)) + + exit() +} |