Debian Codegraph @

doc/SystemTap_Beginners_Guide/testsuite/systemtap.bpf/asm_tests/printf-basic.stp

raw
1 function foo:long (x:long) %{ /* bpf */
2 call, -, printf, "x = %p \n", $x;
3 0xb7, $$, -, -, 0x0; /* mov $$, 0 */
4 %}
5
6 probe begin {
7 printf("U 'x = 0xa' should print:\n"); foo(10)
8 exit()
9 }