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

global foo
probe kernel.function(
%( kernel_v < "2.6.19" %? "pipe_writev" %: "pipe_write" %) )
{
   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] ++
}