summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.maps/elision.stp
blob: e903f569f1601b9ebc2045787c212e20dcf15f1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# test that we can check the count of an empty array

global a,b,c

probe begin
{
	a <<< 444
	a <<< 999
        print(@hist_linear(a, 0, 1500, 50))
	delete a

	a <<< 444
	a <<< 500
        print(@hist_linear(a, 0, 1500, 50))
	delete a

	a <<< 0
        print(@hist_linear(a, 0, 1500, 50))
	delete a

	a <<< 50
        print(@hist_linear(a, 0, 1500, 50))
	delete a

	a <<< 1450
        print(@hist_linear(a, 0, 1500, 50))
	delete a

	a <<< 1500
        print(@hist_linear(a, 0, 1500, 50))
	delete a

	b <<< -10
        print(@hist_linear(b, -100, 100, 10))
	delete b

	b <<< 0
        print(@hist_linear(b, -100, 100, 10))
	delete b

	c <<< 128
	print(@hist_log(c))
	delete c

	c <<< 0
	print(@hist_log(c))
	delete c

	c <<< -2
	c <<< -4096
	print(@hist_log(c))

	exit()
}