摘要 |
A method for tracing an instrumented program, including triggering a probe in the instrumented program, obtaining an original instruction associated with the probe, loading the original instruction into a scratch space, beginning execution of the original instruction in the scratch space using a thread, detecting a state of a signal received by a signal handler, and if the signal is asynchronous, executing a second instruction corresponding to the signal after executing the original instruction, and if the signal is synchronous, executing a third instruction corresponding to the signal and resetting a program counter to a location of the original instruction where the probe in the instrumented program was triggered.
|