Run-time-instrumentation controls emit instruction

US9430238B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-9430238-B2
Application numberUS-201213422577-A
CountryUS
Kind codeB2
Filing dateMar 16, 2012
Priority dateMar 16, 2012
Publication dateAug 30, 2016
Grant dateAug 30, 2016

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Aspects of the invention relate to executing a run-time-instrumentation EMIT (RIEMIT) instruction. A processor is configured to capture the run-time-instrumentation information of a stream of instructions. The RIEMIT instruction is fetched and executed. It is determined if the current run-time-instrumentation controls are configured to permit capturing and storing of run-time-instrumentation information in a run-time-instrumentation program buffer. If the controls are configured to store run-time-instrumentation instructions, then a RIEMIT instruction specified value is stored as an emit record of a reporting group in the run-time-instrumentation program buffer.

First claim

Opening claim text (preview).

What is claimed is: 1. A computer program product for executing a run-time-instrumentation controls emit (RIEMIT) instruction, the RIEMIT instruction executable in either a supervisor state or a lesser-privileged state, the computer program product comprising: a non-transitory tangible storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising: configuring a processor to capture run-time-instrumentation information of a stream of instructions in a computer program, the configuring including accessing program status word (PSW) associated with the computer program to update a bit in the PSW to indicate that run-time instrumentation data should be captured by the processor, the stream of instructions comprising the RIEMIT instruction, and the computer program is one of a plurality of computer programs for execution by the processor each having an associated PSW; fetching the RIEMIT instruction; executing, by the processor, the RIEMIT instruction, the executing comprising: determining that current run-time-instrumentation controls are configured to permit capturing of run-time-instrumentation information for storing run-time-instrumentation records in a run-time-instrumentation program buffer; and storing an RIEMIT instruction specified value as an emit record of a reporting group in the run-time-instrumentation program buffer. 2. The computer program product according to claim 1 , wherein the reporting group consists of run-time-instrumentation records, the run-time-instrumentation records comprising address reporting (AR) records, each AR record having an instruction address field and an event field, the instruction address field having an instruction address of an instruction associated with a run-time-instrumentation event, the event field having a type value indicating a type of AR record, wherein the emit record is an AR record, wherein, within the reporting group, AR records are arranged, in the reporting group, according to program order of run-time-instrumentation event occurrence associated with an AR record of the reporting group. 3. The computer program product according to claim 1 , wherein determining is based on: an indicator that run-time-instrumentation is enabled; an indicator that the current run-time-instrumentation controls are valid; and an indicator that the RIEMIT instruction is enabled. 4. The computer program product according to claim 1 , wherein the determining includes any one of: determining that the RIEMIT instruction is being executed from the lesser-privileged state and that the current run-time-instrumentation controls are configured to allow the execution of the RIEMIT instruction from the lesser-privileged state; and determining that the RIEMIT instruction is being executed from the supervisor state and that the current run-time-instrumentation controls are configured to allow the execution of the RIEMIT instruction from the supervisor state. 5. The computer program product according to claim 1 , wherein the determining comprises determining that the run-time-instrumentation program buffer will accommodate additional data. 6. The computer program product according to claim 1 , wherein the RIEMIT instruction comprises a register field for specifying a register location, wherein the RIEMIT instruction specified value is obtained from the register location. 7. The computer program product according to claim 6 , further comprising: capturing run-time-instrumentation information of run-time-instrumentation events in a collection buffer in program order of occurrence of run-time-instrumentation events; based on the determining, capturing the RIEMIT instruction specified value in the collection buffer in program order; and storing in the run-time-instrumentation program buffer, information from the collection buffer as records of the reporting group in the run-time-instrumentation program buffer, wherein the reporting group consists of run-time-instrumentation records, the run-time-instrumentation records comprising address reporting (AR) records, each AR record having an instruction address field and an event field, the instruction address field having an instruction address of an instruction associated with a run-time-instrumentation event, the event field having a type field indicating a type of AR record, wherein the emit record is an AR record, wherein, within a reporting group, AR records are arranged, in the reporting group, according to program order of run-time-instrumentation event occurrence associated with an AR record of the reporting group. 8. A computer system for executing a run-time-instrumentation controls emit (RIEMIT) instruction, the RIEMIT instruction executable in either a supervisor state or a lesser-privileged state, the system comprising: a memory; and a computer processor comprising a run-time-instrumentation module, the run-time-instrumentation module configured to perform a method comprising: configuring the computer processor to capture run-time-instrumentation information of a stream of instructions in a computer program, the configuring including accessing a program status word (PSW) associated with the computer program to update a bit in the PSW to indicate that run-time instrumentation data should be captured by the computer processor, the stream of instructions comprising the RIEMIT instruction, and the computer program is one of a plurality of computer programs for execution by the processor each having an associated PSW; fetching the RIEMIT instruction; executing the RIEMIT instruction, the executing comprising: determining current run-time-instrumentation controls are configured to permit capturing of run-time-instrumentation information for storing run-time-instrumentation records in a run-time-instrumentation program buffer; and storing an RIEMIT instruction specified value as an emit record of a reporting group in the run-time-instrumentation program buffer. 9. The system according to claim 8 , wherein the reporting group consists of run-time-instrumentation records, the run-time-instrumentation records comprising address reporting (AR) records, each AR record having an instruction address field and an event field, the instruction address field having an instruction address of an instruction associated with a run-time-instrumentation event, the event field having a type value indicating a type of AR record, wherein the emit record is an AR record, wherein, within the reporting group, AR records are arranged, in the reporting group, according to program order of run-time-instrumentation event occurrence associated with an AR record of the reporting group. 10. The system according to claim 8 , wherein determining is based on: an indicator that run-time-instrumentation is enabled; an indicator that the current run-time-instrumentation controls are valid; and an indicator that the RIEMIT instruction is enabled. 11. The system according to claim 8 , wherein the determining includes any one of: determining that the RIEMIT instruction is being executed from the lesser-privileged state and that the current run-time-instrumentation controls are configured to allow the execution of the RIEMIT instruction from the lesser-privileged state; and determining that the RIEMIT instruction is being executed from the supervisor state and that the current run-time-instrumentation controls are configured to allow the execution of the RIEMIT instruction from the supervisor state. 12. The system according to claim 8 , wherein the determining comprises determining that the run-time-instrumentation program buffer will accomm

Assignees

Inventors

Classifications

  • Circuit details, i.e. tracer hardware · CPC title

  • Abstract machines for programme code execution, e.g. Java virtual machine [JVM], interpreters, emulators · CPC title

  • Instruction analysis, e.g. decoding, instruction word fields · CPC title

  • Special purpose registers · CPC title

  • Performance evaluation by tracing or monitoring · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US9430238B2 cover?
Aspects of the invention relate to executing a run-time-instrumentation EMIT (RIEMIT) instruction. A processor is configured to capture the run-time-instrumentation information of a stream of instructions. The RIEMIT instruction is fetched and executed. It is determined if the current run-time-instrumentation controls are configured to permit capturing and storing of run-time-instrumentation in…
Who is the assignee on this patent?
Gainey Jr Charles W, Mitran Marcel, Shum Chung-Lung K, and 2 more
What technology area does this patent fall under?
Primary CPC classification G06F9/30145. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Aug 30 2016 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 8 related publications on this page (citations in our corpus or others sharing the same primary CPC).