Method in a performance monitor for sampling all performance events generated by a processor
AssigneeInternational Business Machines Corporation
InventorAlex E. Mericas
Life of this patent
Estimating the term…
Abstract
A method for detecting and recording events in a processor. A performance monitor in the processor receives performance event signals generated by the processor that indicate the current full event state of the processor. A limited number of counters are provided in the performance monitor for counting only a selected subset of the performance event signals. An event register is provided in the performance monitor that intercepts the performance event signals prior to the subset of the performance event signals being counted. The performance event signals are stored together as a single unit in the event register. The unit is a full set of available performance event signals that indicate the current full event state of the processor.
Claims4
A computer-implemented method of monitoring processor performance by a performance monitor hardware unit, the computer-implemented method comprising actions of:
- receiving, within the performance monitor hardware unit, a plurality of performance event signals, the plurality of performance event signals indicating a current full event state of the processor at a particular time;
- counting only a selected subset of the plurality of performance event signals by a plurality of hardware counters included in the performance monitor hardware unit;
- intercepting, by a hardware event register included in the performance monitor hardware unit, the plurality of performance event signals;
- outputting, by the hardware event register, the selected subset of the plurality of performance signals to the plurality of hardware counters;
- storing current values, of the plurality of performance event signals together as a single unit, in the hardware event register as current contents upon each occurrence of a clock cycle, the single unit being a full set of available performance event signals that indicate the current full event state of the processor at the particular time;
- and
- overwriting current contents of the hardware event register upon each clock cycle.
Dependencies are inferred from the claim text.