Run-time instrumentation directed sampling
First Claim
1. A computer program product for implementing run-time instrumentation directed sampling, the computer program product comprising:
- a tangible non-transitory storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising;
fetching a run-time instrumentation next (RINEXT) instruction from an instruction stream, the instruction stream comprising the RINEXT instruction followed by a next sequential instruction (NSI) in program order; and
executing the RINEXT instruction by a processor, the executing comprising;
determining whether a current run-time instrumentation state enables setting a sample point on a sample instruction for reporting run-time instrumentation information during program execution;
based on the current run-time instrumentation state enabling setting the sample point, interpreting the next sequential instruction as an NSI sample instruction for causing a run-time instrumentation event as a trigger to record the run-time instrumentation information comprising data that led up to the NSI sample instruction into a run-time instrumentation program buffer; and
based on executing the NSI sample instruction, causing the run-time instrumentation event to record the run-time instrumentation information into the run-time instrumentation program buffer as a reporting group.
1 Assignment
0 Petitions
Accused Products
Abstract
The invention relates to implementing run-time instrumentation directed sampling. An aspect of the invention includes fetching a run-time instrumentation next (RINEXT) instruction from an instruction stream. The instruction stream includes the RINEXT instruction followed by a next sequential instruction (NSI) in program order. The method further includes executing the RINEXT instruction by a processor. The executing includes determining whether a current run-time instrumentation state enables setting a sample point for reporting run-time instrumentation information during program execution. Based on the current run-time instrumentation state enabling setting the sample point, the NSI is a sample instruction for causing a run-time instrumentation event. Based on executing the NSI sample instruction, the run-time instrumentation event causes recording of run-time instrumentation information into a run-time instrumentation program buffer as a reporting group.
-
Citations
15 Claims
-
1. A computer program product for implementing run-time instrumentation directed sampling, the computer program product comprising:
a tangible non-transitory storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising; fetching a run-time instrumentation next (RINEXT) instruction from an instruction stream, the instruction stream comprising the RINEXT instruction followed by a next sequential instruction (NSI) in program order; and executing the RINEXT instruction by a processor, the executing comprising; determining whether a current run-time instrumentation state enables setting a sample point on a sample instruction for reporting run-time instrumentation information during program execution; based on the current run-time instrumentation state enabling setting the sample point, interpreting the next sequential instruction as an NSI sample instruction for causing a run-time instrumentation event as a trigger to record the run-time instrumentation information comprising data that led up to the NSI sample instruction into a run-time instrumentation program buffer; and based on executing the NSI sample instruction, causing the run-time instrumentation event to record the run-time instrumentation information into the run-time instrumentation program buffer as a reporting group. - View Dependent Claims (2, 3, 4, 5, 6, 7, 14)
-
8. A system for implementing run-time instrumentation directed sampling, the system comprising:
-
a memory; and a processor comprising a run-time instrumentation module, the run-time instrumentation module configured to perform a method comprising; fetching a run-time instrumentation next (RINEXT) instruction from an instruction stream, the instruction stream comprising the RINEXT instruction followed by a next sequential instruction (NSI) in program order; and executing the RINEXT instruction by the processor, the executing comprising; determining whether a current run-time instrumentation state enables setting a sample point on a sample instruction for reporting run-time instrumentation information during program execution; based on the current run-time instrumentation state enabling setting the sample point, interpreting the next sequential instruction as an NSI sample instruction for causing a run-time instrumentation event as a trigger to record the run-time instrumentation information comprising data that led up to the NSI sample instruction into a run-time instrumentation program buffer; and based on executing the NSI sample instruction, causing the run-time instrumentation event to record the run-time instrumentation information into the run-time instrumentation program buffer as a reporting group in the memory. - View Dependent Claims (9, 10, 11, 12, 13, 15)
-
Specification