Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.maps/linear_neg.stp

raw
1 # test for a negative interval
2
3 global agg
4
5 probe begin
6 {
7 # Add items to the aggregate
8 for (key=0; key < 100; key++) {
9 agg <<< key
10 }
11
12 printf("count=%d\n", @count(agg))
13 printf("sum=%d\n", @sum(agg))
14 printf("min=%d\n", @min(agg))
15 printf("max=%d\n", @max(agg))
16 printf("avg=%d\n", @avg(agg))
17 printf("variance=%d\n", @variance(agg))
18
19 print(@hist_linear(agg, 0, 1500, -1))
20
21 exit()
22 }