×

Run-time instrumentation indirect sampling by instruction operation code

  • US 9,442,728 B2
  • Filed: 03/05/2013
  • Issued: 09/13/2016
  • Est. Priority Date: 03/16/2012
  • Status: Active Grant
First Claim
Patent Images

1. A computer implemented method for implementing run-time instrumentation indirect sampling by instruction operation code, the method comprising:

  • initializing a run-time-instrumentation control based on executing a load run-time instrumentation controls (LRIC) instruction, the LRIC instruction establishing a sampling mode and a sample-point instruction (SPI) control, wherein the SPI control is a field in a load control block loadable as an operand of the LRIC instruction, and the SPI control enables indirect sampling by instruction operation code as an additional sampling mode in combination with one or more of directed sampling and interval-based sampling;

    reading sample-point instruction operation codes from a sample-point instruction array, the sample-point instruction array comprising a part of a register in a processor;

    comparing, by the processor, the sample-point instruction operation codes to an operation code of an instruction from an instruction stream executing on the processor, the operation code defining an operation to be executed by the processor;

    recognizing a sample point upon execution of the instruction, by the processor, with the operation code matching one of the sample-point instruction operation codes, wherein run-time instrumentation information is obtained from the sample point; and

    storing the run-time instrumentation information in a run-time instrumentation program buffer as a reporting group.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×