doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/ptridx.stp
raw| 1 | probe process("./ptridx.exe").function("main").label("l1") |
| 2 | { |
| 3 | printf ("a "); |
| 4 | if (@defined($a)) printf("%p => ", $a); |
| 5 | printf("%d, %d\n", $a[0], $a[1]); |
| 6 | } |
| 7 | probe process("./ptridx.exe").function("foo").label("l1") |
| 8 | { |
| 9 | printf ("p "); |
| 10 | if (@defined($p)) printf("%p => ", $p); |
| 11 | printf("%d, %d\n", $p[0], $p[1]); |
| 12 | } |