Methods for interrupting a program and for obtaining program execution acquisition
AssigneeSun Microsystems, Inc.
InventorJan Civlin
Life of this patent
Estimating the term…
Abstract
In a method for interrupting a program, a threshold of a hardware performance counter is adjusted and a program is interrupted when the hardware performance counter reaches the threshold. The method can be used to monitor performance of program code and to interrupt the execution of the program code on the basis of poor performance. In a method for obtaining program execution acquisition, a threshold of a hardware performance counter is set to an interrupt trigger value. An interrupt in the execution of a program is caused when the hardware performance counter reaches the threshold. And a monitor program is executed during the interrupt in the execution of the program.
Claims16
A method for interrupting a program, comprising:
- adjusting a threshold of a hardware performance counter;
- and
- interrupting a program when the hardware performance counter reaches the threshold.
A method for obtaining program execution acquisition, comprising:
- setting a threshold of a hardware performance counter to an interrupt trigger value;
- causing an interrupt in execution of a program when the hardware performance counter reaches the threshold;
- and
- executing a monitor program during the interrupt in the execution of the program.
A method for interrupting execution of program code on the basis of poor performance, comprising:
- selecting a performance parameter to be used to monitor performance of program code;
- setting a threshold of a hardware performance counter that monitors the selected performance parameter to a desired value above a current value of the program counter, the desired value being indicative of poor performance of the program code;
- and
- interrupting execution of the program code when the current value of the harware performance counter reaches the threshold.
Dependencies are inferred from the claim text.