1 2 3 4 5 6 7 8 9 10 11 12
#! stap -p3 %{ void just_some_declaration () {} %} function bar(foo) %{ just_some_declaration(); THIS->__retvalue = THIS->foo + 5; %} probe begin { bar (5) + 0 }