Debian Codegraph @

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

raw
1 # test that we can check the count of an empty array
2
3 global agg
4
5 probe begin
6 {
7 agg <<< 444
8 agg <<< 999
9 printf("count=%d\n", @count(agg))
10 if (@count(agg) > 0) {
11 printf("sum=%d\n", @sum(agg))
12 printf("min=%d\n", @min(agg))
13 printf("max=%d\n", @max(agg))
14 printf("avg=%d\n", @avg(agg))
15 printf("variance=%d\n", @variance(agg, 7))
16 print(@hist_linear(agg, 0, 1500, 50))
17 }
18 exit()
19 }