testsuite/semko/fortytwo.stp
raw| 1 | #! stap -u -p2 |
| 2 | |
| 3 | probe kernel.function("vfs_read") if (foo(2)) { } # must not call functions |
| 4 | |
| 5 | function foo(x) { return x } |
| 6 | |
| 7 | # NB: If this condition is relaxed, then this will have to be blocked: |
| 8 | # global y function foo () { return y++ } # since global y is written-to |
| 9 | # but this one would be fine: |
| 10 | # function foo () { return y++ } # since y is written-to |