summaryrefslogtreecommitdiffstats
path: root/testsuite/semok/twentynine.stp
blob: 6fe308f2d24d99da3d958ebf22ca50074b868cf5 (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
probe alias1 = kernel.function("sys_read").return if ($return) {p=0}
# alias with a function-call condition
probe blias0 = timer.s(1) if (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)}