summaryrefslogtreecommitdiffstats
path: root/testsuite/semok/seventeen.stp
blob: dcb269525ad448b846e921a88341bca34f64bad5 (plain)
1
2
3
4
5
6
7
8
9
10
11
#! stap -p2

global foo
probe kernel.function("pipe_writev")
{
   a = $nr_segs
   foo [a] = 1
   # $nr_segs is not an lvalue here (foo is), so this should compile
   # even in non-guru mode
   foo [$nr_segs] ++
}