Debian Codegraph @

testsuite/buildok/newlocals01.stp

raw
1 #! stap -gp4
2
3 # test accessing locals using STAP_ARG_* macros
4 function baz:long(foo:long, bar:string)
5 %{
6 printk("%s\n", STAP_ARG_bar);
7 STAP_RETVALUE = 600 + STAP_ARG_foo;
8 %}
9
10 probe begin {
11 q = baz(9001, "I'm in your dmesg making stupid jokes")
12 printf("%d\n", q)
13 exit()
14 }