Debian Codegraph @

testsuite/semok/seventeen.stp

raw
1 #! stap -p2
2
3 global foo
4 probe kernel.function("pipe_write")
5 {
6 a = @choose_defined($nr_segs,$iocb)
7 foo [a] = 1
8 # $nr_segs is not an lvalue here (foo is), so this should compile
9 # even in non-guru mode
10 foo [@choose_defined($nr_segs,$iocb)] ++
11 }