Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.bpf/asm_tests/err_alloc.stp

raw
1 function foo:long (x:long) %{ /* bpf */ /* pure */
2 alloc "not a register", BPF_MAXSTRINGLEN; /* SHOULD ERROR */
3 0xbf, $$, "fifty", -, -; /* mov $$, "fifty" */
4 %}
5
6
7 probe begin {
8 printf("foo(1)=%d should be fifty\n", foo(1))
9 exit()
10 }