summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.maps/linear_over.stp
blob: 989d9ac28e6d012ea14b7c5a050263396244f96f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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()
}