summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.maps/linear_empty.stp
blob: f20bf470a411f8ec78a0cfe63b2d1ee9243b8a90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# test that we can check the count of an empty array

global agg

probe begin
{
	printf("count=%d\n", @count(agg))
	if (@count(agg) > 0) {
		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, 50))
	}
	exit()
}