☰
Debian Codegraph
@
5.5-1
5.4-1
/
/
doc
/
SystemTap_Beginners_Guide
/
testsuite
/
systemtap.bpf
/
asm_tests
/
err-printf_args.stp
☽
☼
doc/SystemTap_Beginners_Guide/testsuite/systemtap.bpf/asm_tests/err-printf_args.stp
code
plain
raw
1
function foo:long (x:long) %{ /* bpf */
2
call, -, printf, "x = 0x%p causing exit\n", $x, $x, $x, $x;
3
0xb7, $$, -, -, 0x0; /* mov $$, 0 */
4
%}
5
6
probe begin {
7
printf("U x = 10 should print:\n"); foo(10)
8
exit()
9
}