doc/SystemTap_Beginners_Guide/testsuite/systemtap.base/register_x86_1.stp
raw| 1 | probe process.function("foo").return { |
| 2 | printf("eax = %#x\n", register("eax")); |
| 3 | printf("u eax = %#x\n\n", u_register("eax")); |
| 4 | |
| 5 | printf("ax = %#x\n", register("ax")); |
| 6 | printf("u ax = %#x\n\n", u_register("ax")); |
| 7 | |
| 8 | printf("al = %#x\n", register("al")); |
| 9 | printf("u al = %#x\n\n", u_register("al")); |
| 10 | |
| 11 | printf("ah = %#x\n", register("ah")); |
| 12 | printf("u ah = %#x\n", u_register("ah")); |
| 13 | |
| 14 | exit() |
| 15 | } |