Apparatus and method for pausing processor trace for efficient analysis
AssigneeIntel Corporation
InventorsMichael Lemay, Beeman Strong
Life of this patent
Estimating the term…
Abstract
Processor trace systems and methods are described. For example, one embodiment comprises executing instrumented code by a compiler, the instrumented code including at least one call to un-instrumented code. The compiler can determine the at least one call to un-instrumented code is a next call to be executed. A resume tracing instruction can be inserted into the instrumented code prior to the at least one call to the un-instrumented code. The resume tracing instruction can be executed to selectively add processor tracing to the at least one call to the un-instrumented code, and the at least one call to the un-instrumented code can be executed.
Claims20
A processor comprising:
- a decoder to decode instrumented code;
- and
- an execution circuitry to execute the instrumented code upon decoding, the execution is to:
- detect a call to un-instrumented code during execution of the instrumented code,
- execute and trace the un-instrumented code responsive to detecting the call to the un-instrumented code, and
- return to execute the instrumented code and pause tracing upon the un-instrumented code being completed.
A method comprising:
- decoding, by a decoder of a processor, instrumented code;
- and
- executing, by an execution circuitry of the processor, the instrumented code upon decoding, the execution is to:
- detect a call to un-instrumented code during execution of the instrumented code,
- execute and trace the un-instrumented code responsive to detecting the call to the un-instrumented code, and
- return to execute the instrumented code and pause tracing upon the un-instrumented code being completed.
A non-transitory computer readable storage medium including instructions stored thereon which, when executed by a processor, cause the processor to perform:
- decoding, by a decoder of the processor, instrumented code;
- and
- executing, by an execution circuitry of the processor, the instrumented code upon decoding, the execution is to:
- detect a call to un-instrumented code during execution of the instrumented code,
- execute and trace the un-instrumented code responsive to detecting the call to the un-instrumented code, and
- return to execute the instrumented code and pause tracing upon the un-instrumented code being completed.
Dependencies are inferred from the claim text.