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