Claims
- 1. A method for analyzing causes for an instruction table flush in a processor, said method comprising:
counting a number of clock cycles to transpire while an instruction table is empty after a latest instruction table flush; counting a number of clock cycles to transpire while said instruction table is refilling with instructions; and counting a number of clock cycles to transpire while said refilled instructions execute.
- 2. The method of claim 1, said step for counting said number of clock cycles to transpire while said instruction table is empty further comprises:
assigning a dedicated counter for a specific cause of said latest instruction table flush, said dedicated counter counting said number of clock cycles to transpire while said instruction table is empty after said latest instruction table flush due to said specific cause.
- 3. The method of claim 1, further comprising:
assigning a plurality of counters to a different cause for said latest instruction table flush; counting in all of said plurality of counters said number of clock cycles to transpire while said instruction table is empty; determining a cause for said latest instruction table flush; retaining a value representing a number of clock cycles to transpire while said instruction table is empty in a counter associated with said cause for said latest instruction table flush; and resetting said plurality of counters, other than said counter associated with said cause for said latest instruction table flush, to a value stored in said plurality of counters before said latest instruction flush.
- 4. A computer system for analyzing causes for an instruction table flush in a processor, said computer system comprising:
means for counting a number of clock cycles to transpire while an instruction table is empty after a latest instruction table flush; means for counting a number of clock cycles to transpire while said instruction table is refilling with instructions; and means for counting a number of clock cycles to transpire while said refilled instructions execute.
- 5. The computer system of claim 4, said means for counting said number of clock cycles to transpire while said instruction table is empty further comprising:
means for assigning a dedicated counter for a specific cause of said latest instruction table flush, said dedicated counter counting said number of clock cycles to transpire while said instruction table is empty after said latest instruction table flush due to said specific cause.
- 6. The computer system of claim 4, further comprising:
means for assigning a plurality of counters to a different cause for said latest instruction table flush; means for counting in all of said plurality of counters said number of clock cycles to transpire while said instruction table is empty; means for determining a cause for said latest instruction table flush; means for retaining a value representing a number of clock cycles to transpire while said instruction table is empty in a counter associated with said cause for said latest instruction table flush; and means for resetting said plurality of counters, other than said counter associated with said cause for said latest instruction table flush, to a value stored in said plurality of counters before said latest instruction flush.
- 7. A computer usable medium for analyzing causes for an instruction table flush in a processor, said computer usable medium comprising:
computer program code for counting a number of clock cycles to transpire while an instruction table is empty after a latest instruction table flush; computer program code for counting a number of clock cycles to transpire while said instruction table is refilling with instructions; and computer program code for counting a number of clock cycles to transpire while said refilled instructions execute.
- 8. The computer usable medium of claim 7, said computer program code for counting said number of clock cycles to transpire while said instruction table is empty further comprising:
computer program code for assigning a dedicated counter for a specific cause of said latest instruction table flush, said dedicated counter counting said number of clock cycles to transpire while said instruction table is empty after said latest instruction table flush due to said specific cause.
- 9. The computer usable medium of claim 7, further comprising:
computer program code for assigning a plurality of counters to a different cause for said latest instruction table flush; computer program code for counting in all of said plurality of counters said number of clock cycles to transpire while said instruction table is empty; computer program code for determining a cause for said latest instruction table flush; computer program code for retaining a value representing a number of clock cycles to transpire while said instruction table is empty in a counter associated with said cause for said latest instruction table flush; and computer program code for resetting said plurality of counters, other than said counter associated with said cause for said latest instruction table flush, to a value stored in said plurality of counters before said latest instruction flush.
- 10. A computer system for analyzing causes for an instruction table flush in a processor, said computer system comprising:
at least one counter for counting a number of clock cycles to transpire while an instruction table is empty after a latest instruction table flush; at least one counter for counting a number of clock cycles to transpire while said instruction table is refilling with instructions; and at least one counter for counting a number of clock cycles to transpire while said refilled instructions execute.
- 11. The computer system of claim 10, said at least one counter for counting said number of clock cycles to transpire while said instruction table is empty further comprising:
a dedicated counter for a specific cause of said latest instruction table flush, said dedicated counter counting said number of clock cycles to transpire while said instruction table is empty after said latest instruction table flush due to said specific cause.
- 12. The computer system of claim 10, further comprising:
a plurality of counters each assigned to a different cause for said latest instruction table flush, each of said plurality of counters counting said number of clock cycles to transpire while said instruction table is empty; a status indicator that identifies a cause for said latest instruction table flush; and a reset mechanism, wherein upon a completion of said table refilling, said plurality of counters, other than a counter associated with said cause for said latest instruction table flush, are reset to a value stored in said counters before said latest instruction flush.
RELATED APPLICATIONS
[0001] The present invention is related to the subject matter of the following commonly assigned, copending U.S. patent applications: Ser. No. 09/______ (Attorney Docket No. AUS920020224US1) entitled “METHOD AND SYSTEM FOR IDENTIFYING INSTRUCTION COMPLETION DELAYS IN A PROCESSOR” and filed ______, 2002; and Ser. No. 09/______ (Attorney Docket No. AUS920020225US1) entitled “SPECULATIVE COUNTING OF PERFORMANCE EVENTS WITH REWIND COUNTER“ and filed /______, 2002. The content of the above-referenced applications is incorporated herein by reference.