Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.bpf/asm_tests/err-regparse.stp

raw
1 function foo:long () %{ /* bpf */ /* pure */
2 0xb7, $rc, -, -, 50; /* mov $rc, 50 */
3 0xbf, $$, rc, -, -; /* mov $$, $rc -- TYPO */
4 %}
5
6 probe begin {
7 printf("foo()=%d should be fifty\n", foo())
8 exit()
9 }