summaryrefslogtreecommitdiffstats
path: root/testsuite/systemtap.maps/absentstats.stp
blob: 0968cd583f409c74fe53e5dd8b3d1a2fab8e5111 (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
# stap -DMAXERRORS=40

# NB: PR 6538 will cause systemtap to warn about the read-only globals;
# we can't help that though since the point of this test is to see what
# happens when an empty (never written-to) aggregate is queried.

global sc
probe begin { println(@count(sc)) }
probe begin { print(@sum(sc)) }
probe begin { print(@max(sc)) }
probe begin { print(@min(sc)) }
probe begin { print(@avg(sc)) }
probe begin { print(@hist_log(sc)) }
probe begin { x=@hist_log(sc)[5]; print(x) }

global ry
probe begin { println(@count(ry[4])) }
probe begin { print(@sum(ry[4])) }
probe begin { print(@max(ry[4])) }
probe begin { print(@min(ry[4])) }
probe begin { print(@avg(ry[4])) }
probe begin { print(@hist_log(ry[4])) }
probe begin { x=@hist_log(ry[4])[5]; print(x) }

probe begin { exit() }