Debian Codegraph @

testsuite/semok/twentyfive.stp

raw
1 #! /bin/sh
2
3 set -e
4 stap $@ -p2 -e 'probe begin {foo$1$2$3 log ("avoid probe elision\n")}' # $-expansion only at token head
5 stap $@ -p2 -e 'probe $1 $2' 'syscall.open,begin' '{log ("hello\n")}'
6 stap $@ -p2 -e 'probe begin {@1 @2 log ("avoid probe elision\n")}' 'syscall.open,begin' '{log ("hello\n")}'
7 stap $@ -p2 -e 'probe begin {log (@1.@2)}' 'syscall.open,begin' '{log ("hello\n")}'
8