summaryrefslogtreecommitdiffstats
path: root/testsuite/semko/fortytwo.stp
blob: 09a04ea79b7573074d08a1678670277483e661a6 (plain)
1
2
3
4
5
6
7
8
9
10
#! stap -p2

probe kernel.function("vfs_read") if (foo(2)) { }  # must not call functions

function foo(x) { return x }

# NB: If this condition is relaxed, then this will have to be blocked:
#    global y function foo () { return y++ }   # since global y is written-to
# but this one would be fine:
#    function foo () { return y++ }   # since y is written-to