summaryrefslogtreecommitdiffstats
path: root/testsuite/semok/twentynine.stp
blob: 05e591ce12230a2b43907bbff17ec2dd8ede51d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! stap -p2
global p
function dummy:long () {return p;}

# alias with a condition
probe alias0 = begin if (3) {p=1}
# alias with a kernel-variable condition -- not valid
probe alias1 = kernel.function("sys_read").return if (0) { if ($return) {p=0} }
# alias with a function-call condition
probe blias0 = timer.s(1) if (1 /* dummy() */) {p=10}

# multiple probe point with conditions
probe alias2 = alias0 if (1), alias1 if (-1) {p=2}

# wildcard with a global-variable condition
probe *lias0 if (p) {print(p)}

# multi level alias with a condition
probe alias2 if(4) {print(p)}